[SCM] libav/experimental: vp5: don't try decoding a P frame before any I frame was parsed fix issue802
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:36:12 UTC 2013
The following commit has been merged in the experimental branch:
commit 73c87551e57d66da1ea6bfa2dfff45ca6cdda540
Author: Aurelien Jacobs <aurel at gnuage.org>
Date: Tue Jan 27 00:23:27 2009 +0000
vp5: don't try decoding a P frame before any I frame was parsed
fix issue802
Originally committed as revision 16813 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/vp5.c b/libavcodec/vp5.c
index e47db0d..3eecb56 100644
--- a/libavcodec/vp5.c
+++ b/libavcodec/vp5.c
@@ -64,7 +64,8 @@ static int vp5_parse_header(VP56Context *s, const uint8_t *buf, int buf_size,
avcodec_set_dimensions(s->avctx, 16*cols, 16*rows);
return 2;
}
- }
+ } else if (!s->macroblocks)
+ return 0;
return 1;
}
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list