[FFmpeg-cvslog] avcodec/h264_parser: Use av_freep() to avoid leaving stale pointers
Michael Niedermayer
git at videolan.org
Fri Oct 31 00:06:16 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | 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 <michaelni at gmx.at>
> 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);
}
More information about the ffmpeg-cvslog
mailing list