mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
zmbv: fix 2 memleaks
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3eb6e14618
commit
8bd2b27f6b
@ -476,8 +476,8 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
|
||||
return -1;
|
||||
}
|
||||
|
||||
c->cur = av_realloc(c->cur, avctx->width * avctx->height * (c->bpp / 8));
|
||||
c->prev = av_realloc(c->prev, avctx->width * avctx->height * (c->bpp / 8));
|
||||
c->cur = av_realloc_f(c->cur, avctx->width * avctx->height, (c->bpp / 8));
|
||||
c->prev = av_realloc_f(c->prev, avctx->width * avctx->height, (c->bpp / 8));
|
||||
c->bx = (c->width + c->bw - 1) / c->bw;
|
||||
c->by = (c->height+ c->bh - 1) / c->bh;
|
||||
if(!c->cur || !c->prev)
|
||||
|
Loading…
Reference in New Issue
Block a user