comparison zmbv.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 03af25454cc3
children 9b75ab171fa9
comparison
equal deleted inserted replaced
3693:e9be5d4bad80 3694:8765ee4eaa45
669 if (c->pic.data[0]) 669 if (c->pic.data[0])
670 avctx->release_buffer(avctx, &c->pic); 670 avctx->release_buffer(avctx, &c->pic);
671 #ifdef CONFIG_ZLIB 671 #ifdef CONFIG_ZLIB
672 inflateEnd(&(c->zstream)); 672 inflateEnd(&(c->zstream));
673 #endif 673 #endif
674 if(c->cur) 674 av_freep(&c->cur);
675 av_freep(&c->cur); 675 av_freep(&c->prev);
676 if(c->prev)
677 av_freep(&c->prev);
678 676
679 return 0; 677 return 0;
680 } 678 }
681 679
682 AVCodec zmbv_decoder = { 680 AVCodec zmbv_decoder = {