diff options
author | Jason Garrett-Glaser <darkshikari@gmail.com> | 2010-08-04 23:04:05 +0000 |
---|---|---|
committer | Jason Garrett-Glaser <darkshikari@gmail.com> | 2010-08-04 23:04:05 +0000 |
commit | 905ef0d064d8fb6a349b071c686c4a7fa5a99e07 (patch) | |
tree | 3ae8bf7599a298afaaa2b80cf196e8b4cf9d5033 /libavcodec/vp8.c | |
parent | aaa91aa00edddb097cce7fa769db6643de37df11 (diff) | |
download | ffmpeg-905ef0d064d8fb6a349b071c686c4a7fa5a99e07.tar.gz |
VP5/6/8: eliminate CABAC dependency
Create a custom table for VP5/6/8's renorm to avoid depending on H.264's.
Saves one instruction in the arithmetic decoder as well.
Originally committed as revision 24701 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp8.c')
-rw-r--r-- | libavcodec/vp8.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c index 66e8c9d554..329e6053f8 100644 --- a/libavcodec/vp8.c +++ b/libavcodec/vp8.c @@ -305,11 +305,11 @@ static int setup_partitions(VP8Context *s, const uint8_t *buf, int buf_size) if (buf_size - size < 0) return -1; - vp56_init_range_decoder(&s->coeff_partition[i], buf, size); + ff_vp56_init_range_decoder(&s->coeff_partition[i], buf, size); buf += size; buf_size -= size; } - vp56_init_range_decoder(&s->coeff_partition[i], buf, buf_size); + ff_vp56_init_range_decoder(&s->coeff_partition[i], buf, buf_size); return 0; } @@ -445,7 +445,7 @@ static int decode_frame_header(VP8Context *s, const uint8_t *buf, int buf_size) return ret; } - vp56_init_range_decoder(c, buf, header_size); + ff_vp56_init_range_decoder(c, buf, header_size); buf += header_size; buf_size -= header_size; |