diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-23 13:37:04 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-08-28 15:25:18 +0200 |
commit | c1f48582428f7d5e7d93d2f0af6d4612559f74ca (patch) | |
tree | 4855edef6fd8239024576c94b48b2fdf90d500fc /libavformat/flacdec.c | |
parent | b10a8a30dbf605fb0761c9ee64cfbe8cb87ba710 (diff) | |
download | ffmpeg-c1f48582428f7d5e7d93d2f0af6d4612559f74ca.tar.gz |
avformat/flac_picture: Try to reuse buffer for attached picture
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/flacdec.c')
-rw-r--r-- | libavformat/flacdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flacdec.c b/libavformat/flacdec.c index bfa464c508..2060b48c69 100644 --- a/libavformat/flacdec.c +++ b/libavformat/flacdec.c @@ -145,7 +145,7 @@ static int flac_read_header(AVFormatContext *s) } av_freep(&buffer); } else if (metadata_type == FLAC_METADATA_TYPE_PICTURE) { - ret = ff_flac_parse_picture(s, buffer, metadata_size, 1); + ret = ff_flac_parse_picture(s, &buffer, metadata_size, 1); av_freep(&buffer); if (ret < 0) { av_log(s, AV_LOG_ERROR, "Error parsing attached picture.\n"); |