[FFmpeg-devel] [PATCH]Use av_freep in mov_create_chapter_track

Carl Eugen Hoyos cehoyos at ag.or.at
Sun Mar 9 19:50:21 CET 2014


Hi!

Attached patch fixes a compilation warning here, sorry if I misinterpret the 
code.

Please review, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 8b1816a..45fb115 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -3575,7 +3575,7 @@ static int mov_create_chapter_track(AVFormatContext *s, int tracknum)
             track->enc->extradata = buf;
             track->enc->extradata_size = size;
         } else {
-            av_free(&buf);
+            av_freep(&buf);
         }
     }
 #endif


More information about the ffmpeg-devel mailing list