mirror of https://github.com/mpv-player/mpv
better top_field_first behaviour (mostly what rich suggested)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11673 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
23b599226f
commit
9369acb4dc
|
@ -701,11 +701,15 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi){
|
|||
pic->linesize[2]=mpi->stride[2];
|
||||
|
||||
#if LIBAVCODEC_BUILD >= 4697
|
||||
if(mpi->fields & MP_IMGFIELD_ORDERED)
|
||||
if(lavc_param_interlaced_dct){
|
||||
if((mpi->fields & MP_IMGFIELD_ORDERED) && (mpi->fields & MP_IMGFIELD_INTERLACED))
|
||||
pic->top_field_first= !!(mpi->fields & MP_IMGFIELD_TOP_FIRST);
|
||||
else
|
||||
pic->top_field_first= 1;
|
||||
|
||||
if(lavc_param_top!=-1)
|
||||
pic->top_field_first= lavc_param_top;
|
||||
}
|
||||
#endif
|
||||
|
||||
out_size = avcodec_encode_video(lavc_venc_context, mux_v->buffer, mux_v->buffer_size,
|
||||
|
|
Loading…
Reference in New Issue