From 0a373c31cb7f8dae84857881cd7e3829a6483efe Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 12 Nov 2012 22:58:57 +0100 Subject: [PATCH] svq1dec: dont export the qscale table. SVQ1 has no qscales so the table is of no use, and it triggers a bug as SVQ1 does not maintain the size of the table properly causing a crash. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer --- libavcodec/svq1dec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c index 9b782752c5..e231eac48f 100644 --- a/libavcodec/svq1dec.c +++ b/libavcodec/svq1dec.c @@ -699,6 +699,7 @@ static int svq1_decode_frame(AVCodecContext *avctx, void *data, } *pict = s->current_picture.f; + pict->qscale_table = NULL; ff_MPV_frame_end(s);