diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2006-09-12 04:29:37 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2006-09-12 04:29:37 +0000 |
commit | 1884a48beeae6607f5abf8b6823d3467c81528b6 (patch) | |
tree | 3056b9ce74603cd6902fccc143802d9efab2a1ba /libavcodec | |
parent | c8868640c139fbec53c4fd76a416ed732405f4a2 (diff) | |
download | ffmpeg-1884a48beeae6607f5abf8b6823d3467c81528b6.tar.gz |
Set motion vectors used in B-frames to zero by default
Originally committed as revision 6236 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/vc1.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c index c84f0c5c6e..8ce58afee7 100644 --- a/libavcodec/vc1.c +++ b/libavcodec/vc1.c @@ -3671,6 +3671,8 @@ static void vc1_decode_i_blocks(VC1Context *v) mb_pos = s->mb_x + s->mb_y * s->mb_width; s->current_picture.mb_type[mb_pos] = MB_TYPE_INTRA; s->current_picture.qscale_table[mb_pos] = v->pq; + s->current_picture.motion_val[1][s->block_index[0]][0] = 0; + s->current_picture.motion_val[1][s->block_index[0]][1] = 0; // do actual MB decoding and displaying cbp = get_vlc2(&v->s.gb, ff_msmp4_mb_i_vlc.table, MB_INTRA_VLC_BITS, 2); @@ -3783,6 +3785,8 @@ static void vc1_decode_i_blocks_adv(VC1Context *v) s->dsp.clear_blocks(s->block[0]); mb_pos = s->mb_x + s->mb_y * s->mb_stride; s->current_picture.mb_type[mb_pos] = MB_TYPE_INTRA; + s->current_picture.motion_val[1][s->block_index[0]][0] = 0; + s->current_picture.motion_val[1][s->block_index[0]][1] = 0; // do actual MB decoding and displaying cbp = get_vlc2(&v->s.gb, ff_msmp4_mb_i_vlc.table, MB_INTRA_VLC_BITS, 2); |