diff options
author | rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-08-18 14:49:06 +0000 |
---|---|---|
committer | rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-08-18 14:49:06 +0000 |
commit | 48ecb3e717979195d45c691366da422fb7b06f90 (patch) | |
tree | e1b55aeaf9ccc75aee6952c6c40c73bf9034b841 /libmpcodecs/vd_libmpeg2.c | |
parent | db1804fcac42a4cbec012c64efabfbc1b2e9fc7f (diff) | |
download | mpv-48ecb3e717979195d45c691366da422fb7b06f90.tar.bz2 mpv-48ecb3e717979195d45c691366da422fb7b06f90.tar.xz |
clean up field flags:
1) cosmetic change, no reason these need to be mpeg2-specific
2) add a flag to tell when fields are ordered, so we don't have to
assume bff (which would usually be wrong) when field flags are not
available.
3) add other flags for future use :)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10664 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vd_libmpeg2.c')
-rw-r--r-- | libmpcodecs/vd_libmpeg2.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libmpcodecs/vd_libmpeg2.c b/libmpcodecs/vd_libmpeg2.c index d01be511c7..41f8fc37a9 100644 --- a/libmpcodecs/vd_libmpeg2.c +++ b/libmpcodecs/vd_libmpeg2.c @@ -144,11 +144,12 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){ 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; + mpi->fields |= MP_IMGFIELD_TOP_FIRST; + else mpi->fields &= ~MP_IMGFIELD_TOP_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; + mpi->fields |= MP_IMGFIELD_REPEAT_FIRST; + else mpi->fields &= ~MP_IMGFIELD_REPEAT_FIRST; + mpi->fields |= MP_IMGFIELD_ORDERED; #ifdef MPEG12_POSTPROC if(!mpi->qscale){ |