From 387a47a9e2704ec4bd0b29d40859cff295de3b69 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Wed, 29 Oct 2014 23:03:25 +0000 Subject: libav: fix extradata parsing when SPS_EXT is present git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6478 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- contrib/ffmpeg/A10-h264-extradata.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 contrib/ffmpeg/A10-h264-extradata.patch diff --git a/contrib/ffmpeg/A10-h264-extradata.patch b/contrib/ffmpeg/A10-h264-extradata.patch new file mode 100644 index 000000000..9ad5c7337 --- /dev/null +++ b/contrib/ffmpeg/A10-h264-extradata.patch @@ -0,0 +1,14 @@ +diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c +index 145dce3..b9c47ab 100644 +--- a/libavcodec/h264_parser.c ++++ b/libavcodec/h264_parser.c +@@ -474,7 +474,8 @@ static int h264_split(AVCodecContext *avctx, + * } + */ + if ((state & 0xFFFFFF00) == 0x100 && (state & 0xFFFFFF1F) != 0x107 && +- (state & 0xFFFFFF1F) != 0x108 && (state & 0xFFFFFF1F) != 0x109) { ++ (state & 0xFFFFFF1F) != 0x108 && (state & 0xFFFFFF1F) != 0x109 && ++ (state & 0xFFFFFF1F) != 0x10d) { + if (has_sps) { + while (i > 4 && buf[i - 5] == 0) + i--; -- cgit v1.2.3