Browse Source

vc1dec: Fix tff == 0 handling in init_block_index()

This fixes several files from VLC ticket5887

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.0
Michael Niedermayer 13 years ago
parent
commit
6c9d28a229
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/vc1dec.c

+ 1
- 1
libavcodec/vc1dec.c View File

@@ -78,7 +78,7 @@ static void init_block_index(VC1Context *v)
{ {
MpegEncContext *s = &v->s; MpegEncContext *s = &v->s;
ff_init_block_index(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[0] += s->current_picture_ptr->f.linesize[0];
s->dest[1] += s->current_picture_ptr->f.linesize[1]; s->dest[1] += s->current_picture_ptr->f.linesize[1];
s->dest[2] += s->current_picture_ptr->f.linesize[2]; s->dest[2] += s->current_picture_ptr->f.linesize[2];


Loading…
Cancel
Save