diff options
author | Anton Khirnov <anton@khirnov.net> | 2017-09-01 02:16:33 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-09-01 02:16:33 -0300 |
commit | 78a7af823b7c2a1e3184e6680f2b49bf67101e5c (patch) | |
tree | 07ec2c75848eb926ace16830742be70e61f8282c /libavformat/flac_picture.c | |
parent | b12e4d3bb8df994f042ff1216fb8de2b967aab9e (diff) | |
download | ffmpeg-78a7af823b7c2a1e3184e6680f2b49bf67101e5c.tar.gz |
Use the new AVIOContext destructor.
(cherry picked from commit 6f554521afdf7ab4edbfaa9536660a1dca946b19)
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/flac_picture.c')
-rw-r--r-- | libavformat/flac_picture.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/flac_picture.c b/libavformat/flac_picture.c index a3217f02a6..38982b960d 100644 --- a/libavformat/flac_picture.c +++ b/libavformat/flac_picture.c @@ -140,14 +140,14 @@ int ff_flac_parse_picture(AVFormatContext *s, uint8_t *buf, int buf_size) if (desc) av_dict_set(&st->metadata, "title", desc, AV_DICT_DONT_STRDUP_VAL); - av_freep(&pb); + avio_context_free(&pb); return 0; fail: av_buffer_unref(&data); av_freep(&desc); - av_freep(&pb); + avio_context_free(&pb); return ret; } |