Browse Source

avformat/id3v2: replace call to av_init_packet()

Signed-off-by: James Almer <jamrial@gmail.com>
tags/n4.4
James Almer 4 years ago
parent
commit
453021c74e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/id3v2.c

+ 1
- 1
libavformat/id3v2.c View File

@@ -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;


Loading…
Cancel
Save