Commit adadf26b authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Use enum FrameType as parameter to construct_perm_table().

Originally committed as revision 20480 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent b411dfff
...@@ -1014,6 +1014,7 @@ static av_cold void init_bitstream_params(TwinContext *tctx) ...@@ -1014,6 +1014,7 @@ static av_cold void init_bitstream_params(TwinContext *tctx)
int bsize_no_main_cb[3]; int bsize_no_main_cb[3];
int bse_bits[3]; int bse_bits[3];
int i; int i;
enum FrameType frametype;
for (i = 0; i < 3; i++) for (i = 0; i < 3; i++)
// +1 for history usage switch // +1 for history usage switch
...@@ -1062,8 +1063,8 @@ static av_cold void init_bitstream_params(TwinContext *tctx) ...@@ -1062,8 +1063,8 @@ static av_cold void init_bitstream_params(TwinContext *tctx)
tctx->length_change[i] = num_rounded_up; tctx->length_change[i] = num_rounded_up;
} }
for (i = 0; i < 4; i++) for (frametype = FT_SHORT; frametype <= FT_PPC; frametype++)
construct_perm_table(tctx, i); construct_perm_table(tctx, frametype);
} }
static av_cold int twin_decode_init(AVCodecContext *avctx) static av_cold int twin_decode_init(AVCodecContext *avctx)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment