aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-01-31 16:59:31 -0300
committerJames Almer <jamrial@gmail.com>2021-03-17 15:06:48 -0300
commit453021c74e2ca8abcb86c4e503ed1eefa91c23de (patch)
tree17a5cf9b897cd340ff209433f513804f44acecb0
parent4de3504adfb6699c56628edbf7d7ea52a8424607 (diff)
downloadffmpeg-453021c74e2ca8abcb86c4e503ed1eefa91c23de.tar.gz
avformat/id3v2: replace call to av_init_packet()
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavformat/id3v2.c2
1 files changed, 1 insertions, 1 deletions
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;