OSDN Git Service

vc1: fix VC-1 Pulldown handling.
authorJohn Stebbins <stebbins@jetheaddev.com>
Thu, 25 Aug 2011 19:36:13 +0000 (12:36 -0700)
committerRonald S. Bultje <rsbultje@gmail.com>
Thu, 25 Aug 2011 19:41:45 +0000 (12:41 -0700)
commit0d802ac54e86aee587f5e9917a2eefbfecd73571
tree0701e22e6a3ddf139652615995f2a6a9e7b8335c
parent1cf82cab0840d669198ea76ab0363aa661950647
vc1: fix VC-1 Pulldown handling.

Pulldown flags are being set incorrectly and AVFrame->repeat_pict is not
being set.  Also, skipped frames exit header parsing too early and do not
set pulldown flags appropriately. Ticks_per_frame needs to be set and
time_base adjusted so player can extend frame duration by a field time.

This fixes problems encountered when attempting to transcode HD-DVD EVOB
files with HandBrake. Also makes these files play smoothly in avplay.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavcodec/vc1.c
libavcodec/vc1_parser.c
libavcodec/vc1dec.c