diff libmpcodecs/vd_ffmpeg.c @ 7957:31fd09cc9ba2

passing picture_type (might be usefull for postprocessing)
author michael
date Tue, 29 Oct 2002 11:26:26 +0000
parents 48075855804b
children a57c1fc0c2fc
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Tue Oct 29 11:21:43 2002 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Tue Oct 29 11:26:26 2002 +0000
@@ -630,6 +630,17 @@
     mpi->qscale=&quant_store[0][0];
     mpi->qstride=MBC+1;
 #endif
+
+    {
+        static int last_non_b_type= 0;
+
+	if(avctx->pict_type == B_TYPE)
+	    mpi->pict_type= B_TYPE;
+	else{
+	    mpi->pict_type= last_non_b_type;
+	    last_non_b_type= avctx->pict_type;
+	}
+    }
     
     return mpi;
 }