Mercurial > libavcodec.hg
changeset 11361:3fa1224ae130 libavcodec
Really fix 2.95
author | conrad |
---|---|
date | Thu, 04 Mar 2010 10:01:03 +0000 |
parents | dedeca07ba3b |
children | 1682a19a0881 |
files | vp3.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/vp3.c Thu Mar 04 09:25:42 2010 +0000 +++ b/vp3.c Thu Mar 04 10:01:03 2010 +0000 @@ -456,6 +456,7 @@ */ static int unpack_superblocks(Vp3DecodeContext *s, GetBitContext *gb) { + int superblock_starts[3] = { 0, s->u_superblock_start, s->v_superblock_start }; int bit = 0; int current_superblock = 0; int current_run = 0; @@ -547,7 +548,7 @@ memset(s->macroblock_coding, MODE_COPY, s->macroblock_count); for (plane = 0; plane < 3; plane++) { - int sb_start = (int[3]){ 0, s->u_superblock_start, s->v_superblock_start }[plane]; + int sb_start = superblock_starts[plane]; int sb_end = sb_start + (plane ? s->c_superblock_count : s->y_superblock_count); int num_coded_frags = 0;