diff libmpcodecs/vd_libmpeg2.c @ 10510:73b3e4336cd4

Add mpeg2_flags to mp_image_t, copy flags in vd_libmpeg2.c, and add vf_softpulldown.c.
author ranma
date Sun, 03 Aug 2003 12:09:58 +0000
parents d953763cc555
children 711159267b2d
line wrap: on
line diff
--- a/libmpcodecs/vd_libmpeg2.c	Sun Aug 03 12:04:57 2003 +0000
+++ b/libmpcodecs/vd_libmpeg2.c	Sun Aug 03 12:09:58 2003 +0000
@@ -143,6 +143,12 @@
 		(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){