changeset 5260:745917a7ac1d libavformat

H264 allows B frames without requiring a >=1 sized buffer. Patch by wallak, wallak free fr
author cehoyos
date Sat, 03 Oct 2009 19:30:09 +0000
parents 1c4c83a0fd96
children f3913172e206
files utils.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Fri Oct 02 07:27:08 2009 +0000
+++ b/utils.c	Sat Oct 03 19:30:09 2009 +0000
@@ -770,7 +770,7 @@
     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 ? */