Mercurial > libavcodec.hg
comparison mpeg12.c @ 240:e3e0094cb5c9 libavcodec
block_last_index was too large (in mpeg1 decoding)
author | michaelni |
---|---|
date | Mon, 18 Feb 2002 00:31:16 +0000 |
parents | 75123d30f862 |
children | 4bb6289eff93 |
comparison
equal
deleted
inserted
replaced
239:16cd8a9c4da4 | 240:e3e0094cb5c9 |
---|---|
946 dprintf("%d: run=%d level=%d\n", n, run, level); | 946 dprintf("%d: run=%d level=%d\n", n, run, level); |
947 j = zigzag_direct[i]; | 947 j = zigzag_direct[i]; |
948 block[j] = level; | 948 block[j] = level; |
949 i++; | 949 i++; |
950 } | 950 } |
951 s->block_last_index[n] = i; | 951 s->block_last_index[n] = i-1; |
952 return 0; | 952 return 0; |
953 } | 953 } |
954 | 954 |
955 /* Also does unquantization here, since I will never support mpeg2 | 955 /* Also does unquantization here, since I will never support mpeg2 |
956 encoding */ | 956 encoding */ |