diff options
author | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2009-11-08 23:37:59 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2009-11-08 23:37:59 +0000 |
commit | adadf26bb9a84b6f45ce30ea47374d9a9afffc80 (patch) | |
tree | 4ba71fd6338edeb4bbd4097219f980242c047976 /libavcodec/twinvq.c | |
parent | b411dfff4c39fd54167bed6d2570dff4c4044e9b (diff) | |
download | ffmpeg-adadf26bb9a84b6f45ce30ea47374d9a9afffc80.tar.gz |
Use enum FrameType as parameter to construct_perm_table().
Originally committed as revision 20480 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/twinvq.c')
-rw-r--r-- | libavcodec/twinvq.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/twinvq.c b/libavcodec/twinvq.c index 57c3301a12..814a0b081a 100644 --- a/libavcodec/twinvq.c +++ b/libavcodec/twinvq.c @@ -1014,6 +1014,7 @@ static av_cold void init_bitstream_params(TwinContext *tctx) int bsize_no_main_cb[3]; int bse_bits[3]; int i; + enum FrameType frametype; for (i = 0; i < 3; i++) // +1 for history usage switch @@ -1062,8 +1063,8 @@ static av_cold void init_bitstream_params(TwinContext *tctx) tctx->length_change[i] = num_rounded_up; } - for (i = 0; i < 4; i++) - construct_perm_table(tctx, i); + for (frametype = FT_SHORT; frametype <= FT_PPC; frametype++) + construct_perm_table(tctx, frametype); } static av_cold int twin_decode_init(AVCodecContext *avctx) |