[FFmpeg-devel] [PATCH 18/48] avformat/flac_picture: replace call to av_init_packet()
James Almer
jamrial at gmail.com
Fri Mar 5 18:33:09 EET 2021
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavformat/flac_picture.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/flac_picture.c b/libavformat/flac_picture.c
index 53e24b28b7..f15cfa877a 100644
--- a/libavformat/flac_picture.c
+++ b/libavformat/flac_picture.c
@@ -165,7 +165,7 @@ int ff_flac_parse_picture(AVFormatContext *s, uint8_t *buf, int buf_size, int tr
RETURN_ERROR(AVERROR(ENOMEM));
}
- av_init_packet(&st->attached_pic);
+ av_packet_unref(&st->attached_pic);
st->attached_pic.buf = data;
st->attached_pic.data = data->data;
st->attached_pic.size = len;
--
2.30.1
More information about the ffmpeg-devel
mailing list