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

michael subversion
Sat Feb 13 00:28:33 CET 2010


Author: michael
Date: Sat Feb 13 00:28:33 2010
New Revision: 21783

Log:
Dont drop B frames without last_picture.
Fixes issue1722

Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	Fri Feb 12 23:01:42 2010	(r21782)
+++ trunk/libavcodec/h264.c	Sat Feb 13 00:28:33 2010	(r21783)
@@ -1715,11 +1715,6 @@ static int decode_slice_header(H264Conte
     h->slice_type_nos= slice_type & 3;
 
     s->pict_type= h->slice_type; // to make a few old functions happy, it's wrong though
-    if (s->pict_type == FF_B_TYPE && s0->last_picture_ptr == NULL) {
-        av_log(h->s.avctx, AV_LOG_ERROR,
-               "B picture before any references, skipping\n");
-        return -1;
-    }
 
     pps_id= get_ue_golomb(&s->gb);
     if(pps_id>=MAX_PPS_COUNT){



More information about the ffmpeg-cvslog mailing list