[FFmpeg-cvslog] svq1dec: dont export the qscale table.

Michael Niedermayer git at videolan.org
Mon Nov 12 23:08:29 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Nov 12 22:58:57 2012 +0100| [0a373c31cb7f8dae84857881cd7e3829a6483efe] | committer: Michael Niedermayer

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 <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0a373c31cb7f8dae84857881cd7e3829a6483efe
---

 libavcodec/svq1dec.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c
index 9b78275..e231eac 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);
 



More information about the ffmpeg-cvslog mailing list