ffmpeg | branch: master | Michael Niedermayer <mich...@niedermayer.cc> | Sat Oct 10 00:07:30 2015 +0200| [3d126ef188639e0b55bdbbb755eafced66f23352] | committer: Michael Niedermayer
avcodec/h264_mp4toannexb_bsf: Use av_freep() to free spspps_buf Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3d126ef188639e0b55bdbbb755eafced66f23352 --- libavcodec/h264_mp4toannexb_bsf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/h264_mp4toannexb_bsf.c b/libavcodec/h264_mp4toannexb_bsf.c index a5da84a..a927bab 100644 --- a/libavcodec/h264_mp4toannexb_bsf.c +++ b/libavcodec/h264_mp4toannexb_bsf.c @@ -276,7 +276,7 @@ static void h264_mp4toannexb_filter_close(AVBitStreamFilterContext *bsfc) { H264BSFContext *ctx = bsfc->priv_data; if (ctx->private_spspps) - av_free(ctx->spspps_buf); + av_freep(&ctx->spspps_buf); } AVBitStreamFilter ff_h264_mp4toannexb_bsf = { _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog