[FFmpeg-cvslog] svq1enc: Set picture_structure correctly

Michael Niedermayer git at videolan.org
Wed Sep 5 13:52:54 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Aug  6 16:28:13 2012 +0200| [2d7d91f06d6a1d243dc74c96d3389ee237a3b906] | committer: Martin Storsjö

svq1enc: Set picture_structure correctly

This fixes assert failures when running in debug mode.

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2d7d91f06d6a1d243dc74c96d3389ee237a3b906
---

 libavcodec/svq1enc.c |    1 +
 1 file changed, 1 insertion(+)

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));



More information about the ffmpeg-cvslog mailing list