summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorAlexandre Colucci <alexandre@elgato.com>2011-04-04 15:20:10 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-04-04 15:35:03 +0200
commit37ffba2a445b2ec82ea3096041f29ffca0af99d1 (patch)
tree3b909b1c3e4bbbf02e5285999e43bbb21ac39a2d /libavcodec
parent2506ad9f170ba3c21eed5dd884f51413adc51d37 (diff)
Communicate pulldown flags to clients to fix VC-1 playback with pulldown content
The pulldown flags should be communicated to the client of the libavcodec library. Not doing so causes jerky playback with pulldown content. Note that this change requires the patch previously provided here: http://ffmpeg.org/pipermail/ffmpeg-devel/2011-April/110314.html Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/vc1dec.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index c3b4b83367..ae035a6ce2 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -3374,6 +3374,15 @@ static int vc1_decode_frame(AVCodecContext *avctx,
goto err;
}
+ s->current_picture_ptr->repeat_pict = 0;
+ if (v->rff){
+ s->current_picture_ptr->repeat_pict = 1;
+ }else if (v->rptfrm){
+ s->current_picture_ptr->repeat_pict = v->rptfrm * 2;
+ }
+
+ s->current_picture_ptr->top_field_first = v->tff;
+
// for skipping the frame
s->current_picture.pict_type= s->pict_type;
s->current_picture.key_frame= s->pict_type == FF_I_TYPE;