X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fh264dec.c;h=8c9c6d9f3bfb2f13ff9530f2f92453f3de48872f;hb=fa2d28567e3514323c440c4b7935a3d711eded8d;hp=1d99ed5f4c2c5483976a80d3e5c35e024b7fd65f;hpb=dae6d27aa0b02e05790b7c4dc99f7f6b07223ea1;p=ffmpeg diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c index 1d99ed5f4c2..8c9c6d9f3bf 100644 --- a/libavcodec/h264dec.c +++ b/libavcodec/h264dec.c @@ -51,7 +51,6 @@ #include "mathops.h" #include "me_cmp.h" #include "mpegutils.h" -#include "mpeg4video.h" #include "profiles.h" #include "rectangle.h" #include "thread.h" @@ -316,7 +315,6 @@ static int h264_init_context(AVCodecContext *avctx, H264Context *h) h->flags = avctx->flags; h->poc.prev_poc_msb = 1 << 16; h->recovery_frame = -1; - h->x264_build = -1; h->frame_recovered = 0; h->poc.prev_frame_num = -1; h->sei.frame_packing.arrangement_cancel_flag = -1; @@ -1038,6 +1036,7 @@ static const AVOption h264_options[] = { { "is_avc", "is avc", OFFSET(is_avc), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, 0 }, { "nal_length_size", "nal_length_size", OFFSET(nal_length_size), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 4, 0 }, { "enable_er", "Enable error resilience on damaged frames (unsafe)", OFFSET(enable_er), AV_OPT_TYPE_BOOL, { .i64 = -1 }, -1, 1, VD }, + { "x264_build", "Assume this x264 version if no x264 version found in any SEI", OFFSET(x264_build), AV_OPT_TYPE_INT, {.i64 = -1}, -1, INT_MAX, VD }, { NULL }, };