[FFmpeg-cvslog] r14308 - trunk/libavcodec/h264.c

michael subversion
Sat Jul 19 18:16:00 CEST 2008


Author: michael
Date: Sat Jul 19 18:16:00 2008
New Revision: 14308

Log:
Take the brain amputated spec litteral if the user asks for it (-strict 1)
That is, add 16 frames delay, cache trashing and av desync.
fixes at least the following reference bitstreams:
CABA3_Sony_C.jsv
CACQP3_Sony_D.jsv
CAMANL1_TOSHIBA_B.264
CANL3_Sony_C.jsv
CVBS3_Sony_C.jsv
CVMANL1_TOSHIBA_B.264


Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	(original)
+++ trunk/libavcodec/h264.c	Sat Jul 19 18:16:00 2008
@@ -7836,6 +7836,12 @@ static int decode_frame(AVCodecContext *
                 s->low_delay = 0;
             }
 
+            if(   s->avctx->strict_std_compliance >= FF_COMPLIANCE_STRICT
+               && !h->sps.bitstream_restriction_flag){
+                s->avctx->has_b_frames= MAX_DELAYED_PIC_COUNT;
+                s->low_delay= 0;
+            }
+
             pics = 0;
             while(h->delayed_pic[pics]) pics++;
 




More information about the ffmpeg-cvslog mailing list