[MPlayer-cvslog] r19575 - trunk/libmpcodecs/vf_uspp.c
michael
subversion at mplayerhq.hu
Mon Aug 28 20:09:59 CEST 2006
Author: michael
Date: Mon Aug 28 20:09:58 2006
New Revision: 19575
Modified:
trunk/libmpcodecs/vf_uspp.c
Log:
segfault fix
Modified: trunk/libmpcodecs/vf_uspp.c
==============================================================================
--- trunk/libmpcodecs/vf_uspp.c (original)
+++ trunk/libmpcodecs/vf_uspp.c Mon Aug 28 20:09:58 2006
@@ -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();
More information about the MPlayer-cvslog
mailing list