aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-05-06 13:15:05 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-05-06 13:15:05 +0000
commit7aaf3b98fcbee72e216435ad29360e58b6a18673 (patch)
tree7136af1ead5d4b9b3944fc41dab22cc71156b799 /libavcodec/mpegvideo.c
parente71a4f7425d61623e8c44dd9bd765246393761e3 (diff)
downloadffmpeg-7aaf3b98fcbee72e216435ad29360e58b6a18673.tar.gz
there are divx5? encoded files without a userdata section but with b-frames :(
Originally committed as revision 446 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 75f51ffe1e..73daa0d323 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -159,7 +159,9 @@ int MPV_common_init(MpegEncContext *s)
s->next_picture_base[i] = pict;
s->next_picture[i] = pict + pict_start;
- if (s->has_b_frames) {
+ if (s->has_b_frames || s->codec_id==CODEC_ID_MPEG4) {
+ /* Note the MPEG4 stuff is here cuz of buggy encoders which dont set the low_delay flag but
+ do low-delay encoding, so we cant allways distinguish b-frame containing streams from low_delay streams */
pict = av_mallocz(c_size);
if (pict == NULL)
goto fail;