[FFmpeg-cvslog] flashsv2enc: use av_freep()
Michael Niedermayer
git at videolan.org
Fri Apr 29 02:57:04 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Apr 29 02:41:13 2011 +0200| [ba9c4db59a82e7aa70a61782c3e3e85eaae7dd72] | committer: Michael Niedermayer
flashsv2enc: use av_freep()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ba9c4db59a82e7aa70a61782c3e3e85eaae7dd72
---
libavcodec/flashsv2enc.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/libavcodec/flashsv2enc.c b/libavcodec/flashsv2enc.c
index 44c9bc6..3fd716f 100644
--- a/libavcodec/flashsv2enc.c
+++ b/libavcodec/flashsv2enc.c
@@ -123,14 +123,14 @@ typedef struct FlashSV2Context {
static av_cold void cleanup(FlashSV2Context * s)
{
- av_free(s->encbuffer);
- av_free(s->keybuffer);
- av_free(s->databuffer);
- av_free(s->current_frame);
- av_free(s->key_frame);
-
- av_free(s->frame_blocks);
- av_free(s->key_blocks);
+ av_freep(&s->encbuffer);
+ av_freep(&s->keybuffer);
+ av_freep(&s->databuffer);
+ av_freep(&s->current_frame);
+ av_freep(&s->key_frame);
+
+ av_freep(&s->frame_blocks);
+ av_freep(&s->key_blocks);
}
static void init_blocks(FlashSV2Context * s, Block * blocks,
More information about the ffmpeg-cvslog
mailing list