Mercurial > libavcodec.hg
comparison svq1enc.c @ 10042:37485479bb6e libavcodec
fix a crash in SVQ1 with cmp!=sad
author | lorenm |
---|---|
date | Tue, 11 Aug 2009 07:04:33 +0000 |
parents | e9d9d946f213 |
children | 38cfe222e1a4 |
comparison
equal
deleted
inserted
replaced
10041:acbb86a779b8 | 10042:37485479bb6e |
---|---|
497 s->c_block_width = (s->frame_width / 4 + 15) / 16; | 497 s->c_block_width = (s->frame_width / 4 + 15) / 16; |
498 s->c_block_height = (s->frame_height / 4 + 15) / 16; | 498 s->c_block_height = (s->frame_height / 4 + 15) / 16; |
499 | 499 |
500 s->avctx= avctx; | 500 s->avctx= avctx; |
501 s->m.avctx= avctx; | 501 s->m.avctx= avctx; |
502 s->m.me.temp = | |
502 s->m.me.scratchpad= av_mallocz((avctx->width+64)*2*16*2*sizeof(uint8_t)); | 503 s->m.me.scratchpad= av_mallocz((avctx->width+64)*2*16*2*sizeof(uint8_t)); |
503 s->m.me.map = av_mallocz(ME_MAP_SIZE*sizeof(uint32_t)); | 504 s->m.me.map = av_mallocz(ME_MAP_SIZE*sizeof(uint32_t)); |
504 s->m.me.score_map = av_mallocz(ME_MAP_SIZE*sizeof(uint32_t)); | 505 s->m.me.score_map = av_mallocz(ME_MAP_SIZE*sizeof(uint32_t)); |
505 s->mb_type = av_mallocz((s->y_block_width+1)*s->y_block_height*sizeof(int16_t)); | 506 s->mb_type = av_mallocz((s->y_block_width+1)*s->y_block_height*sizeof(int16_t)); |
506 s->dummy = av_mallocz((s->y_block_width+1)*s->y_block_height*sizeof(int32_t)); | 507 s->dummy = av_mallocz((s->y_block_width+1)*s->y_block_height*sizeof(int32_t)); |