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

James Almer jamrial at gmail.com
Fri Mar 5 18:33:10 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 df11b5450c..f33b7ba93a 100644
--- a/libavformat/id3v2.c
+++ b/libavformat/id3v2.c
@@ -1162,7 +1162,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.1



More information about the ffmpeg-devel mailing list