diff mpegvideo.c @ 557:c1e1be461662 libavcodec

direct rendering for SVQ1 MpegEncContext->opaque MUST NOT be used by the codec, its for the parent program using standart values for pict_type using (uv)linesize handling dropable p-frames like b-frames
author michaelni
date Mon, 15 Jul 2002 21:19:37 +0000
parents 762c67fd4078
children 23e58889a108
line wrap: on
line diff
--- a/mpegvideo.c	Mon Jul 15 14:15:10 2002 +0000
+++ b/mpegvideo.c	Mon Jul 15 21:19:37 2002 +0000
@@ -651,7 +651,7 @@
             s->last_dr_opaque= s->next_dr_opaque;
             s->next_dr_opaque= avctx->dr_opaque_frame;
 
-            if(s->has_b_frames && s->last_dr_opaque)
+            if(s->has_b_frames && s->last_dr_opaque && s->codec_id!=CODEC_ID_SVQ1)
                 avctx->dr_opaque_frame= s->last_dr_opaque;
             else
                 avctx->dr_opaque_frame= s->next_dr_opaque;