Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-23 14:37:04 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-08-28 16:25:18 +0300
commitc1f48582428f7d5e7d93d2f0af6d4612559f74ca (patch)
tree4855edef6fd8239024576c94b48b2fdf90d500fc /libavformat/flacdec.c
parentb10a8a30dbf605fb0761c9ee64cfbe8cb87ba710 (diff)
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.c2
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");