]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/bitstream.c
proresdec: Fix read via negative index in a global array.
[ffmpeg] / libavcodec / bitstream.c
index d4d7623bc35a0c24f930da950a71e84cfc1685c5..e1336438a0597b3734555c804f114397607697b5 100644 (file)
@@ -103,7 +103,7 @@ static int alloc_table(VLC *vlc, int size, int use_static)
     vlc->table_size += size;
     if (vlc->table_size > vlc->table_allocated) {
         if(use_static)
-            abort(); //cant do anything, init_vlc() is used with too little memory
+            abort(); // cannot do anything, init_vlc() is used with too little memory
         vlc->table_allocated += (1 << vlc->bits);
         vlc->table = av_realloc_f(vlc->table,
                                   vlc->table_allocated, sizeof(VLC_TYPE) * 2);
@@ -322,4 +322,3 @@ void free_vlc(VLC *vlc)
 {
     av_freep(&vlc->table);
 }
-