summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-08-28 18:09:58 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-08-28 18:09:58 +0000
commit86a3d94253a4c553f832c034064edafa0962b987 (patch)
tree48b13c23e16c1ef31e66501af117bcef02524882
parentacf654cf8ff5d7a2693067116347ce568b0455d6 (diff)
downloadmpv-86a3d94253a4c553f832c034064edafa0962b987.tar.bz2
mpv-86a3d94253a4c553f832c034064edafa0962b987.tar.xz
segfault fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19575 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libmpcodecs/vf_uspp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libmpcodecs/vf_uspp.c b/libmpcodecs/vf_uspp.c
index 24d388dcb2..068a19b9a5 100644
--- a/libmpcodecs/vf_uspp.c
+++ b/libmpcodecs/vf_uspp.c
@@ -21,6 +21,7 @@
#include <string.h>
#include <inttypes.h>
#include <math.h>
+#include <assert.h>
#include "config.h"
@@ -240,9 +241,10 @@ static int config(struct vf_instance_s* vf,
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();