svq1enc: Set picture_structure correctly

This fixes assert failures when running in debug mode.

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Michael Niedermayer 2012-08-06 16:28:13 +02:00 committed by Martin Storsjö
parent 91672504a4
commit 2d7d91f06d
1 changed files with 1 additions and 0 deletions

View File

@ -486,6 +486,7 @@ static av_cold int svq1_encode_init(AVCodecContext *avctx)
s->avctx= avctx; s->avctx= avctx;
s->m.avctx= avctx; s->m.avctx= avctx;
s->m.picture_structure = PICT_FRAME;
s->m.me.temp = s->m.me.temp =
s->m.me.scratchpad= av_mallocz((avctx->width+64)*2*16*2*sizeof(uint8_t)); 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)); s->m.me.map = av_mallocz(ME_MAP_SIZE*sizeof(uint32_t));