From 2d7d91f06d6a1d243dc74c96d3389ee237a3b906 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 6 Aug 2012 16:28:13 +0200 Subject: svq1enc: Set picture_structure correctly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes assert failures when running in debug mode. Signed-off-by: Martin Storsjö --- libavcodec/svq1enc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec') diff --git a/libavcodec/svq1enc.c b/libavcodec/svq1enc.c index 3d90558..d1a55bd 100644 --- a/libavcodec/svq1enc.c +++ b/libavcodec/svq1enc.c @@ -486,6 +486,7 @@ static av_cold int svq1_encode_init(AVCodecContext *avctx) s->avctx= avctx; s->m.avctx= avctx; + s->m.picture_structure = PICT_FRAME; s->m.me.temp = s->m.me.scratchpad= av_mallocz((avctx->width+64)*2*16*2*sizeof(uint8_t)); s->m.me.map = av_mallocz(ME_MAP_SIZE*sizeof(uint32_t)); -- cgit v1.1