[FFmpeg-cvslog] avcodec/vc1: reset fcm/field_mode in non advanced header parsing
Michael Niedermayer
git at videolan.org
Fri Mar 21 05:52:34 CET 2014
ffmpeg | branch: release/0.9 | Michael Niedermayer <michaelni at gmx.at> | Sat Feb 1 19:04:37 2014 +0100| [605c3f051540970c313a65f5a5345f6ba148a75b] | committer: Michael Niedermayer
avcodec/vc1: reset fcm/field_mode in non advanced header parsing
Fixes NULL pointer dereference
Fixes: signal_sigsegv_1ab8bf4_2847_cov_4254117347_SA10091.vc1
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit b51e9354772de446e8196dabf9aad1567b22f74d)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=605c3f051540970c313a65f5a5345f6ba148a75b
---
libavcodec/vc1.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index 775caa6..284cbea 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -578,6 +578,8 @@ int vc1_parse_frame_header(VC1Context *v, GetBitContext* gb)
{
int pqindex, lowquant, status;
+ v->field_mode = 0;
+ v->fcm = 0;
if (v->finterpflag)
v->interpfrm = get_bits1(gb);
skip_bits(gb, 2); //framecnt unused
More information about the ffmpeg-cvslog
mailing list