OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4af8cdf
)
huffyuv: make VLAs fixed size
author
Måns Rullgård
<mans@mansr.com>
Fri, 25 Jun 2010 18:32:29 +0000
(18:32 +0000)
committer
Måns Rullgård
<mans@mansr.com>
Fri, 25 Jun 2010 18:32:29 +0000
(18:32 +0000)
Originally committed as revision 23784 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/huffyuv.c
patch
|
blob
|
history
diff --git
a/libavcodec/huffyuv.c
b/libavcodec/huffyuv.c
index
7764c35
..
f5125b6
100644
(file)
--- a/
libavcodec/huffyuv.c
+++ b/
libavcodec/huffyuv.c
@@
-232,9
+232,9
@@
static void heap_sift(HeapElem *h, int root, int size)
}
static void generate_len_table(uint8_t *dst, const uint64_t *stats, int size){
- HeapElem h[
size
];
- int up[2*
size
];
- int len[2*
size
];
+ HeapElem h[
256
];
+ int up[2*
256
];
+ int len[2*
256
];
int offset, i, next;
for(offset=1; ; offset<<=1){