[FFmpeg-cvslog] svq1enc: Set picture_structure correctly

Michael Niedermayer git at videolan.org
Wed Mar 11 21:54:43 CET 2015


ffmpeg | branch: release/0.10 | Michael Niedermayer <michaelni at gmx.at> | Mon Aug  6 16:28:13 2012 +0200| [3eed35addb461c42471e0367bb6cd68d8ffd3aec] | committer: Diego Biurrun

svq1enc: Set picture_structure correctly

This fixes assert failures when running in debug mode.

Signed-off-by: Martin Storsjö <martin at martin.st>
(cherry picked from commit 2d7d91f06d6a1d243dc74c96d3389ee237a3b906)
Signed-off-by: Diego Biurrun <diego at biurrun.de>

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

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

diff --git a/libavcodec/svq1enc.c b/libavcodec/svq1enc.c
index 82b828b..d90346e 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