changeset 20639:2a2f3db46103

pass the interlacing info to the filter chain
author henry
date Sat, 04 Nov 2006 07:08:54 +0000
parents d56ce5b63c86
children c52bb8d6edea
files libmpcodecs/vd_libmpeg2.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_libmpeg2.c	Sat Nov 04 07:05:21 2006 +0000
+++ b/libmpcodecs/vd_libmpeg2.c	Sat Nov 04 07:08:54 2006 +0000
@@ -221,6 +221,8 @@
 		mpi_new->fields |= MP_IMGFIELD_REPEAT_FIRST;
 	    else mpi_new->fields &= ~MP_IMGFIELD_REPEAT_FIRST;
 	    mpi_new->fields |= MP_IMGFIELD_ORDERED;
+            if (!(info->current_picture->flags&PIC_FLAG_PROGRESSIVE_FRAME))
+                mpi_new->fields |= MP_IMGFIELD_INTERLACED;
 
 #ifdef MPEG12_POSTPROC
 	    mpi_new->qstride=info->sequence->width>>4;