diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-08-06 16:28:13 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-09-04 18:38:02 +0300 |
commit | 2d7d91f06d6a1d243dc74c96d3389ee237a3b906 (patch) | |
tree | 0251888c7a227d2b8888061bfd05be73daf13dab | |
parent | 91672504a403556f63492093b892574234f21dd7 (diff) | |
download | ffmpeg-streaming-2d7d91f06d6a1d243dc74c96d3389ee237a3b906.zip ffmpeg-streaming-2d7d91f06d6a1d243dc74c96d3389ee237a3b906.tar.gz |
svq1enc: Set picture_structure correctly
This fixes assert failures when running in debug mode.
Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r-- | libavcodec/svq1enc.c | 1 |
1 files changed, 1 insertions, 0 deletions
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)); |