svq1enc: Set picture_structure correctly
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 6 Aug 2012 14:28:13 +0000 (16:28 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 4 Sep 2012 15:38:02 +0000 (18:38 +0300)
This fixes assert failures when running in debug mode.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/svq1enc.c

index 3d90558..d1a55bd 100644 (file)
@@ -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));