From 78a7af823b7c2a1e3184e6680f2b49bf67101e5c Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 1 Sep 2017 02:16:33 -0300 Subject: Use the new AVIOContext destructor. (cherry picked from commit 6f554521afdf7ab4edbfaa9536660a1dca946b19) Signed-off-by: James Almer --- libavformat/mpjpegdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/mpjpegdec.c') diff --git a/libavformat/mpjpegdec.c b/libavformat/mpjpegdec.c index 4c7764412f..83aa70d0c9 100644 --- a/libavformat/mpjpegdec.c +++ b/libavformat/mpjpegdec.c @@ -126,7 +126,7 @@ static int mpjpeg_read_probe(AVProbeData *p) ret = (parse_multipart_header(pb, &size, "--", NULL) >= 0) ? AVPROBE_SCORE_MAX : 0; - av_free(pb); + avio_context_free(&pb); return ret; } -- cgit v1.2.3