Signed-off-by: James Almer <[email protected]>
---
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
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".