mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
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>
This commit is contained in:
parent
2506ad9f17
commit
37ffba2a44
1 changed files with 9 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue