[FFmpeg-cvslog] avformat/hevc: fix mix of av_malloc() with free()

Michael Niedermayer git at videolan.org
Sun Mar 9 23:33:55 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Mar  9 23:27:31 2014 +0100| [88c8e4afeaf74ee58b67145e0331e229d8050968] | committer: Michael Niedermayer

avformat/hevc: fix mix of av_malloc() with free()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=88c8e4afeaf74ee58b67145e0331e229d8050968
---

 libavformat/hevc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/hevc.c b/libavformat/hevc.c
index 6e935e6..19dd2f4 100644
--- a/libavformat/hevc.c
+++ b/libavformat/hevc.c
@@ -1056,7 +1056,7 @@ int ff_hevc_annexb2mp4(AVIOContext *pb, const uint8_t *buf_in,
     }
 
 end:
-    free(start);
+    av_free(start);
     if (ps_count)
         *ps_count = num_ps;
     return ret;
@@ -1109,7 +1109,7 @@ int ff_hevc_annexb2mp4_buf(const uint8_t *buf_in, uint8_t **buf_out,
     *size = avio_close_dyn_buf(pb, buf_out);
 
 end:
-    free(start);
+    av_free(start);
     if (ps_count)
         *ps_count = num_ps;
     return ret;



More information about the ffmpeg-cvslog mailing list