segfault fix

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19575 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2006-08-28 18:09:58 +00:00
parent acf654cf8f
commit 86a3d94253
1 changed files with 3 additions and 1 deletions

View File

@ -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();