diff options
author | James Almer <jamrial@gmail.com> | 2021-01-31 16:59:31 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-03-17 15:06:48 -0300 |
commit | 453021c74e2ca8abcb86c4e503ed1eefa91c23de (patch) | |
tree | 17a5cf9b897cd340ff209433f513804f44acecb0 | |
parent | 4de3504adfb6699c56628edbf7d7ea52a8424607 (diff) | |
download | ffmpeg-453021c74e2ca8abcb86c4e503ed1eefa91c23de.tar.gz |
avformat/id3v2: replace call to av_init_packet()
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavformat/id3v2.c | 2 |
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; |