aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorWallak <wallak@free.fr>2009-10-03 19:30:09 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2009-10-03 19:30:09 +0000
commitf4a4be3f4e9b5f69fc9063c2030e255e754b4a24 (patch)
tree55bba4d5384bf4d15548d1739f53bfd170d49965 /libavformat/utils.c
parent1febba1e62a10e5174956272e8a9c7737e87adb8 (diff)
downloadffmpeg-f4a4be3f4e9b5f69fc9063c2030e255e754b4a24.tar.gz
H264 allows B frames without requiring a >=1 sized buffer.
Patch by wallak, wallak free fr Originally committed as revision 20160 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r--libavformat/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 1e8a2f4280..f46be17860 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -770,7 +770,7 @@ static void compute_pkt_fields(AVFormatContext *s, AVStream *st,
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 ? */