aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Garrett-Glaser <darkshikari@gmail.com>2010-07-22 06:39:54 +0000
committerJason Garrett-Glaser <darkshikari@gmail.com>2010-07-22 06:39:54 +0000
commit158e062c95adbfc150eba3ed16acb5c405a4a974 (patch)
treef4518ffc6fb088489f832eddc8f1a8109be12d8f
parent7bf254c41d2d4ec937ec2a472b8adbea660fd2d2 (diff)
downloadffmpeg-158e062c95adbfc150eba3ed16acb5c405a4a974.tar.gz
Avoid useless fill_rectangle in P-frames in VP8
In VP8, i4x4 only uses contexts based on neighbors in I-frames. Originally committed as revision 24415 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/vp8.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c
index 9407698802..3d8c77ea2d 100644
--- a/libavcodec/vp8.c
+++ b/libavcodec/vp8.c
@@ -752,10 +752,8 @@ static void decode_mb_mode(VP8Context *s, VP8Macroblock *mb, int mb_x, int mb_y,
// intra MB, 16.1
mb->mode = vp8_rac_get_tree(c, vp8_pred16x16_tree_inter, s->prob->pred16x16);
- if (mb->mode == MODE_I4x4) {
+ if (mb->mode == MODE_I4x4)
decode_intra4x4_modes(c, intra4x4, s->b4_stride, 0);
- } else
- fill_rectangle(intra4x4, 4, 4, s->b4_stride, vp8_pred4x4_mode[mb->mode], 1);
s->chroma_pred_mode = vp8_rac_get_tree(c, vp8_pred8x8c_tree, s->prob->pred8x8c);
mb->ref_frame = VP56_FRAME_CURRENT;