diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-04-20 02:15:13 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-04-20 02:22:32 +0200 |
commit | 6c9d28a2294de86519c7c613c76394c66dcfd83c (patch) | |
tree | 2330511480711905d209c119709aee320ffdc693 /libavcodec/vc1dec.c | |
parent | a0fbc28c3881fb932597e0776780b09e8a1347f5 (diff) | |
download | ffmpeg-6c9d28a2294de86519c7c613c76394c66dcfd83c.tar.gz |
vc1dec: Fix tff == 0 handling in init_block_index()
This fixes several files from VLC ticket5887
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vc1dec.c')
-rw-r--r-- | libavcodec/vc1dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index 6451f0cf57..08bbb88ba5 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@ -78,7 +78,7 @@ static void init_block_index(VC1Context *v) { MpegEncContext *s = &v->s; ff_init_block_index(s); - if (v->field_mode && v->second_field) { + if (v->field_mode && !(v->second_field ^ v->tff)) { s->dest[0] += s->current_picture_ptr->f.linesize[0]; s->dest[1] += s->current_picture_ptr->f.linesize[1]; s->dest[2] += s->current_picture_ptr->f.linesize[2]; |