[Sumover-dev] [svn commit] r4569 - vic/branches/mpeg4
sumover-dev at cs.ucl.ac.uk
sumover-dev at cs.ucl.ac.uk
Wed Jan 27 16:50:35 GMT 2010
Author: piers
Date: Wed Jan 27 16:50:34 2010
New Revision: 4569
Added:
vic/branches/mpeg4/ffmpeg.iocom.patch
Log:
Added patch for ffmpeg (libavcodec/h264.c) to enable decode of IOCOM's non-standard H.264 streams
Added: vic/branches/mpeg4/ffmpeg.iocom.patch
==============================================================================
--- (empty file)
+++ vic/branches/mpeg4/ffmpeg.iocom.patch Wed Jan 27 16:50:34 2010
@@ -0,0 +1,11 @@
+--- ffmpeg/libavcodec/h264.c 2010-01-22 12:15:55.000000000 +0000
++++ ffmpeg/libavcodec/h264.c.mod 2010-01-22 12:13:37.000000000 +0000
+@@ -3406,7 +3406,7 @@ static int execute_ref_pic_marking(H264C
+ }
+ }
+
+- if (h->long_ref_count + h->short_ref_count > h->sps.ref_frame_count){
++ if ((h->long_ref_count + h->short_ref_count > 1) && h->long_ref_count + h->short_ref_count > h->sps.ref_frame_count){
+
+ /* We have too many reference frames, probably due to corrupted
+ * stream. Need to discard one frame. Prevents overrun of the
More information about the Sumover-dev
mailing list