Ticket #94: ffmpeg-libx264-remove-duplicate-OPT_STR.patch

File ffmpeg-libx264-remove-duplicate-OPT_STR.patch, 1.0 KB (added by Robert, 15 years ago)
  • libavcodec/libx264.c

    diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
    index c1e60e6..5c1f11d 100644
    a b static void check_default_settings(AVCodecContext *avctx)  
    199199        }                                                               \
    200200    } while (0);                                                        \
    201201
    202 #define OPT_STR(opt, param)                                             \
    203     do {                                                                \
    204         if (param && x264_param_parse(&x4->params, opt, param) < 0) {   \
    205             av_log(avctx, AV_LOG_ERROR,                                 \
    206                    "bad value for '%s': '%s'\n", opt, param);           \
    207             return -1;                                                  \
    208         }                                                               \
    209     } while (0);                                                        \
    210 
    211202static av_cold int X264_init(AVCodecContext *avctx)
    212203{
    213204    X264Context *x4 = avctx->priv_data;