Mercurial > libavcodec.hg
comparison vp56.c @ 10968:c1cccc058c7a libavcodec
Use av_freep intead of av_free to free pointers in vp56 context.
author | reimar |
---|---|
date | Sat, 23 Jan 2010 13:49:09 +0000 |
parents | 2983bd7deaf5 |
children | 170c9ce34d14 |
comparison
equal
deleted
inserted
replaced
10967:1c3a10f94570 | 10968:c1cccc058c7a |
---|---|
685 | 685 |
686 av_cold int vp56_free(AVCodecContext *avctx) | 686 av_cold int vp56_free(AVCodecContext *avctx) |
687 { | 687 { |
688 VP56Context *s = avctx->priv_data; | 688 VP56Context *s = avctx->priv_data; |
689 | 689 |
690 av_free(s->above_blocks); | 690 av_freep(&s->above_blocks); |
691 av_free(s->macroblocks); | 691 av_freep(&s->macroblocks); |
692 av_free(s->edge_emu_buffer_alloc); | 692 av_freep(&s->edge_emu_buffer_alloc); |
693 if (s->framep[VP56_FRAME_GOLDEN]->data[0]) | 693 if (s->framep[VP56_FRAME_GOLDEN]->data[0]) |
694 avctx->release_buffer(avctx, s->framep[VP56_FRAME_GOLDEN]); | 694 avctx->release_buffer(avctx, s->framep[VP56_FRAME_GOLDEN]); |
695 if (s->framep[VP56_FRAME_GOLDEN2]->data[0]) | 695 if (s->framep[VP56_FRAME_GOLDEN2]->data[0]) |
696 avctx->release_buffer(avctx, s->framep[VP56_FRAME_GOLDEN2]); | 696 avctx->release_buffer(avctx, s->framep[VP56_FRAME_GOLDEN2]); |
697 if (s->framep[VP56_FRAME_PREVIOUS]->data[0]) | 697 if (s->framep[VP56_FRAME_PREVIOUS]->data[0]) |