[FFmpeg-cvslog] png: Use av_freep() instead of av_free()
Donny Yang
git at videolan.org
Sat Mar 28 17:29:59 CET 2015
ffmpeg | branch: master | Donny Yang <work at kota.moe> | Sat Mar 28 15:14:21 2015 +0000| [5904d039ce785e0b9b28f8664c6fc493c60f6e8d] | committer: Michael Niedermayer
png: Use av_freep() instead of av_free()
Signed-off-by: Donny Yang <work at kota.moe>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5904d039ce785e0b9b28f8664c6fc493c60f6e8d
---
libavcodec/pngenc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c
index 9bdefc4..0231bf7 100644
--- a/libavcodec/pngenc.c
+++ b/libavcodec/pngenc.c
@@ -512,9 +512,9 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
ret = 0;
the_end:
- av_free(crow_base);
- av_free(progressive_buf);
- av_free(top_buf);
+ av_freep(&crow_base);
+ av_freep(&progressive_buf);
+ av_freep(&top_buf);
deflateEnd(&s->zstream);
return ret;
fail:
More information about the ffmpeg-cvslog
mailing list