changeset 19569:7ba51e3ffca6

segfault fix
author michael
date Mon, 28 Aug 2006 18:09:58 +0000
parents bd821fd3e244
children e9ea7852e803
files libmpcodecs/vf_uspp.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_uspp.c	Mon Aug 28 17:05:18 2006 +0000
+++ b/libmpcodecs/vf_uspp.c	Mon Aug 28 18:09:58 2006 +0000
@@ -21,6 +21,7 @@
 #include <string.h>
 #include <inttypes.h>
 #include <math.h>
+#include <assert.h>
 
 #include "config.h"
 
@@ -240,9 +241,10 @@
             avctx_enc->pix_fmt = PIX_FMT_YUV420P;
             avctx_enc->flags = CODEC_FLAG_QSCALE | CODEC_FLAG_LOW_DELAY;
             avctx_enc->strict_std_compliance = FF_COMPLIANCE_EXPERIMENTAL;
+            avctx_enc->global_quality= 123;
             avcodec_open(avctx_enc, enc);
             avcodec_open(vf->priv->avctx_dec[i], dec);
-
+            assert(avctx_enc->codec);
         }
         vf->priv->frame= avcodec_alloc_frame();
         vf->priv->frame_dec= avcodec_alloc_frame();