From: Alexandre Colucci <[email protected]>

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 <[email protected]>
Signed-off-by: Anton Khirnov <[email protected]>
---
 libavcodec/vc1dec.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index 186610e..8791f75 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -3699,6 +3699,14 @@ static int vc1_decode_frame(AVCodecContext *avctx,
         av_log(v->s.avctx, AV_LOG_WARNING, "Sprite decoder: expected 
I-frame\n");
     }
 
+    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 == AV_PICTURE_TYPE_I;
-- 
1.7.5.3

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to