Browse Source

svq1enc: Set picture_structure correctly

This fixes assert failures when running in debug mode.

Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n1.0
Michael Niedermayer Martin Storsjö 13 years ago
parent
commit
2d7d91f06d
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/svq1enc.c

+ 1
- 0
libavcodec/svq1enc.c View 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));


Loading…
Cancel
Save