Revision 326e9eaa libavcodec/imgconvert.c

View differences:

libavcodec/imgconvert.c
507 507

  
508 508
enum PixelFormat avcodec_get_pix_fmt(const char *name)
509 509
{
510
#ifdef WORDS_BIGENDIAN
511
#   define NE "be"
512
#else
513
#   define NE "le"
514
#endif
515 510
    enum PixelFormat pix_fmt = avcodec_get_pix_fmt_internal(name);
516 511

  
517 512
    if (pix_fmt == PIX_FMT_NONE) {
518 513
        char name2[32];
519
        snprintf(name2, sizeof(name2), "%s%s", name, NE);
514
        snprintf(name2, sizeof(name2), "%s%s", name, X_NE("be", "le"));
520 515
        pix_fmt = avcodec_get_pix_fmt_internal(name2);
521 516
    }
522 517
    return pix_fmt;
523
#undef NE
524 518
}
525 519

  
526 520
void avcodec_pix_fmt_string (char *buf, int buf_size, enum PixelFormat pix_fmt)

Also available in: Unified diff