[FFmpeg-cvslog] r23754 - trunk/libavcodec/vp6.c
mru
subversion
Thu Jun 24 11:02:44 CEST 2010
Author: mru
Date: Thu Jun 24 11:02:44 2010
New Revision: 23754
Log:
vp6: convert VLA to fixed size
Modified:
trunk/libavcodec/vp6.c
Modified: trunk/libavcodec/vp6.c
==============================================================================
--- trunk/libavcodec/vp6.c Thu Jun 24 10:53:32 2010 (r23753)
+++ trunk/libavcodec/vp6.c Thu Jun 24 11:02:44 2010 (r23754)
@@ -36,6 +36,7 @@
#include "vp56data.h"
#include "vp6data.h"
+#define VP6_MAX_HUFF_SIZE 12
static void vp6_parse_coeff(VP56Context *s);
static void vp6_parse_coeff_huffman(VP56Context *s);
@@ -215,7 +216,7 @@ static int vp6_huff_cmp(const void *va,
static void vp6_build_huff_tree(VP56Context *s, uint8_t coeff_model[],
const uint8_t *map, unsigned size, VLC *vlc)
{
- Node nodes[2*size], *tmp = &nodes[size];
+ Node nodes[2*VP6_MAX_HUFF_SIZE], *tmp = &nodes[size];
int a, b, i;
/* first compute probabilities from model */
More information about the ffmpeg-cvslog
mailing list