[FFmpeg-cvslog] r20160 - trunk/libavformat/utils.c

cehoyos subversion
Sat Oct 3 21:30:10 CEST 2009


Author: cehoyos
Date: Sat Oct  3 21:30:09 2009
New Revision: 20160

Log:
B264 allows B frames without requiring a >=1 sized buffer.

Patch by wallak, wallak free fr

Modified:
   trunk/libavformat/utils.c

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	Sat Oct  3 20:22:56 2009	(r20159)
+++ trunk/libavformat/utils.c	Sat Oct  3 21:30:09 2009	(r20160)
@@ -770,7 +770,7 @@ static void compute_pkt_fields(AVFormatC
     int num, den, presentation_delayed, delay, i;
     int64_t offset;
 
-    if (pc && pc->pict_type == FF_B_TYPE)
+    if (st->codec->codec_id != CODEC_ID_H264 && pc && pc->pict_type == FF_B_TYPE)
         st->codec->has_b_frames = 1;
 
     /* do we have a video B-frame ? */



More information about the ffmpeg-cvslog mailing list