# HG changeset patch # User michael # Date 1156788598 0 # Node ID 7ba51e3ffca6f5172439a06872701b4107caaba6 # Parent bd821fd3e244ba05a1994c67941e6d7f9f2e0538 segfault fix diff -r bd821fd3e244 -r 7ba51e3ffca6 libmpcodecs/vf_uspp.c --- 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 #include #include +#include #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();