diff options
author | ranma <ranma@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-08-03 12:09:58 +0000 |
---|---|---|
committer | ranma <ranma@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-08-03 12:09:58 +0000 |
commit | 9f62dfb2c810fd9043d41370cb343aa14e7680ba (patch) | |
tree | b77f83c27d819210e95818705e2e9961297bc1da /libmpcodecs/vd_libmpeg2.c | |
parent | 81df98523924656907a32991153864434cc8d124 (diff) | |
download | mpv-9f62dfb2c810fd9043d41370cb343aa14e7680ba.tar.bz2 mpv-9f62dfb2c810fd9043d41370cb343aa14e7680ba.tar.xz |
Add mpeg2_flags to mp_image_t, copy flags in vd_libmpeg2.c,
and add vf_softpulldown.c.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10511 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vd_libmpeg2.c')
-rw-r--r-- | libmpcodecs/vd_libmpeg2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libmpcodecs/vd_libmpeg2.c b/libmpcodecs/vd_libmpeg2.c index 61626c8378..d01be511c7 100644 --- a/libmpcodecs/vd_libmpeg2.c +++ b/libmpcodecs/vd_libmpeg2.c @@ -143,6 +143,12 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){ (info->sequence->picture_height+15)&(~15) ); if(!mpi) return 0; // VO ERROR!!!!!!!! mpeg2_set_buf(mpeg2dec, mpi->planes, mpi); + if (info->current_picture->flags&PIC_FLAG_TOP_FIELD_FIRST) + mpi->mpeg2_flags |= MP_IMGMPEG2FLAG_TOP_FIELD_FIRST; + else mpi->mpeg2_flags &= ~MP_IMGMPEG2FLAG_TOP_FIELD_FIRST; + if (info->current_picture->flags&PIC_FLAG_REPEAT_FIRST_FIELD) + mpi->mpeg2_flags |= MP_IMGMPEG2FLAG_REPEAT_FIRST_FIELD; + else mpi->mpeg2_flags &= ~MP_IMGMPEG2FLAG_REPEAT_FIRST_FIELD; #ifdef MPEG12_POSTPROC if(!mpi->qscale){ |