ffmpeg | branch: master | Donny Yang <w...@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 <w...@kota.moe>
Signed-off-by: Michael Niedermayer <michae...@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:

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to