Browse Source

vc1_parser: Set field_order.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
tags/n2.0
Masaki Tanaka Anton Khirnov 12 years ago
parent
commit
accde1bd87
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      libavcodec/vc1_parser.c

+ 5
- 0
libavcodec/vc1_parser.c View File

@@ -88,6 +88,11 @@ static void vc1_extract_headers(AVCodecParserContext *s, AVCodecContext *avctx,
}
}

if (vpc->v.broadcast && vpc->v.interlace && !vpc->v.psf)
s->field_order = vpc->v.tff ? AV_FIELD_TT : AV_FIELD_BB;
else
s->field_order = AV_FIELD_PROGRESSIVE;

break;
}
}


Loading…
Cancel
Save