diff options
author | Jason Garrett-Glaser <darkshikari@gmail.com> | 2010-08-03 23:21:47 +0000 |
---|---|---|
committer | Jason Garrett-Glaser <darkshikari@gmail.com> | 2010-08-03 23:21:47 +0000 |
commit | b0d58795138c738c45c5b738418765939021b49f (patch) | |
tree | 791ef04d7aef9a1427c95d9d8198ef622e0f4f5d /libavcodec/vp8.c | |
parent | 2eef529195ae7f83c9356ce55e9357f32f52f65d (diff) | |
download | ffmpeg-b0d58795138c738c45c5b738418765939021b49f.tar.gz |
VP8: slightly faster DCT coefficient probability update
Originally committed as revision 24687 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vp8.c')
-rw-r--r-- | libavcodec/vp8.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c index 3863a81187..2a0f93bb16 100644 --- a/libavcodec/vp8.c +++ b/libavcodec/vp8.c @@ -494,9 +494,8 @@ static int decode_frame_header(VP8Context *s, const uint8_t *buf, int buf_size) for (l = 0; l < NUM_DCT_TOKENS-1; l++) if (vp56_rac_get_prob_branchy(c, vp8_token_update_probs[i][j][k][l])) { int prob = vp8_rac_get_uint(c, 8); - for (m = 0; m < 16; m++) - if (vp8_coeff_band[m] == j) - s->prob->token[i][m][k][l] = prob; + for (m = 0; vp8_coeff_band_indexes[j][m] >= 0; m++) + s->prob->token[i][vp8_coeff_band_indexes[j][m]][k][l] = prob; } if ((s->mbskip_enabled = vp8_rac_get(c))) |