[FFmpeg-cvslog] avformat/id3v2: replace call to av_init_packet()

James Almer git at videolan.org
Wed Mar 17 21:16:45 EET 2021


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun Jan 31 16:59:31 2021 -0300| [453021c74e2ca8abcb86c4e503ed1eefa91c23de] | committer: James Almer

avformat/id3v2: replace call to av_init_packet()

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=453021c74e2ca8abcb86c4e503ed1eefa91c23de
---

 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;



More information about the ffmpeg-cvslog mailing list