aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/svq1enc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-08-06 16:28:13 +0200
committerMartin Storsjö <martin@martin.st>2012-09-04 18:38:02 +0300
commit2d7d91f06d6a1d243dc74c96d3389ee237a3b906 (patch)
tree0251888c7a227d2b8888061bfd05be73daf13dab /libavcodec/svq1enc.c
parent91672504a403556f63492093b892574234f21dd7 (diff)
downloadffmpeg-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>
Diffstat (limited to 'libavcodec/svq1enc.c')
-rw-r--r--libavcodec/svq1enc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/svq1enc.c b/libavcodec/svq1enc.c
index 3d9055864e..d1a55bdfd6 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));