Mercurial > libavcodec.hg
comparison kmvc.c @ 3694:8765ee4eaa45 libavcodec
Drop unneeded checks before av_free() and change to av_freep() where it's more suitable.
author | kostya |
---|---|
date | Sat, 09 Sep 2006 11:40:41 +0000 |
parents | 1eb35b97c056 |
children | c8c591fe26f8 |
comparison
equal
deleted
inserted
replaced
3693:e9be5d4bad80 | 3694:8765ee4eaa45 |
---|---|
393 */ | 393 */ |
394 static int decode_end(AVCodecContext * avctx) | 394 static int decode_end(AVCodecContext * avctx) |
395 { | 395 { |
396 KmvcContext *const c = (KmvcContext *) avctx->priv_data; | 396 KmvcContext *const c = (KmvcContext *) avctx->priv_data; |
397 | 397 |
398 if (c->frm0) | 398 av_freep(&c->frm0); |
399 av_free(c->frm0); | 399 av_freep(&c->frm1); |
400 if (c->frm1) | |
401 av_free(c->frm1); | |
402 if (c->pic.data[0]) | 400 if (c->pic.data[0]) |
403 avctx->release_buffer(avctx, &c->pic); | 401 avctx->release_buffer(avctx, &c->pic); |
404 | 402 |
405 return 0; | 403 return 0; |
406 } | 404 } |