aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-09-27 03:19:24 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-09-27 03:19:24 +0000
commit8b392ae2e7c3982e6a7215e4d81b9191c6793c71 (patch)
tree582dc4f971e343ed4fd06b9181596a9f6ef858ac /libavcodec
parentf1cc95f0e999c3183ccd3aa9b2cc37aa5b535103 (diff)
downloadffmpeg-8b392ae2e7c3982e6a7215e4d81b9191c6793c71.tar.gz
10l (segfault)
Originally committed as revision 3520 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/svq1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/svq1.c b/libavcodec/svq1.c
index 448aa93b10..794dc02dd4 100644
--- a/libavcodec/svq1.c
+++ b/libavcodec/svq1.c
@@ -1299,6 +1299,7 @@ static int svq1_encode_init(AVCodecContext *avctx)
s->c_block_height = (s->frame_height / 4 + 15) / 16;
s->avctx= avctx;
+ s->m.avctx= avctx;
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));
s->m.me.score_map = av_mallocz(ME_MAP_SIZE*sizeof(uint32_t));