[Ffmpeg-devel] [PATCH/BUGREPORT] crash in vorbis decoder

Reimar Döffinger Reimar.Doeffinger
Sun Feb 4 23:08:16 CET 2007


Hello,
http://samples.mplayerhq.hu/A-codecs/vorbis/ffvorbis_crash.ogm
crashes a few seconds into the files.
Attached patches fixes, hopefully it helps finding the reason for the
crash.

Greetings,
Reimar D?ffinger
-------------- next part --------------
Index: libavcodec/vorbis.c
===================================================================
--- libavcodec/vorbis.c	(revision 7817)
+++ libavcodec/vorbis.c	(working copy)
@@ -1469,7 +1469,7 @@
                         int_fast16_t vqbook=vr->books[vqclass][pass];
 
                         if (vqbook>=0) {
-                            uint_fast16_t coffs;
+                            uint16_t coffs;
                             unsigned dim= vc->codebooks[vqbook].dimensions; // not uint_fast8_t: 64bit is slower here on amd64
                             uint_fast16_t step= dim==1 ? vr->partition_size
                                               : FASTDIV(vr->partition_size, dim);



More information about the ffmpeg-devel mailing list