[FFmpeg-devel] [PATCH 18/50] avformat/id3v2: replace call to av_init_packet()

James Almer jamrial at gmail.com
Thu Feb 4 21:09:33 EET 2021


Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavformat/id3v2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/id3v2.c b/libavformat/id3v2.c
index 97f6cc8a68..3800f21ef9 100644
--- a/libavformat/id3v2.c
+++ b/libavformat/id3v2.c
@@ -1159,7 +1159,7 @@ int ff_id3v2_parse_apic(AVFormatContext *s, ID3v2ExtraMeta *extra_meta)
 
         av_dict_set(&st->metadata, "comment", apic->type, 0);
 
-        av_init_packet(&st->attached_pic);
+        av_packet_unref(&st->attached_pic);
         st->attached_pic.buf          = apic->buf;
         st->attached_pic.data         = apic->buf->data;
         st->attached_pic.size         = apic->buf->size - AV_INPUT_BUFFER_PADDING_SIZE;
-- 
2.30.0



More information about the ffmpeg-devel mailing list