ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Thu Oct 30 23:58:52 2014 +0100| [fc8d59fa6f4ca410fcbf88b54aee3a4fbf73c47f] | committer: Michael Niedermayer
avcodec/h264_parser: Use av_freep() to avoid leaving stale pointers Signed-off-by: Michael Niedermayer <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fc8d59fa6f4ca410fcbf88b54aee3a4fbf73c47f --- libavcodec/h264_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/h264_parser.c b/libavcodec/h264_parser.c index 7b9fd1a..5a62f5c 100644 --- a/libavcodec/h264_parser.c +++ b/libavcodec/h264_parser.c @@ -547,7 +547,7 @@ static void close(AVCodecParserContext *s) H264Context *h = s->priv_data; ParseContext *pc = &h->parse_context; - av_free(pc->buffer); + av_freep(&pc->buffer); ff_h264_free_context(h); } _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
