avformat/flac_picture: replace call to av_init_packet()

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2021-01-31 16:59:07 -03:00
parent 9e92fd97d0
commit 4de3504adf
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ int ff_flac_parse_picture(AVFormatContext *s, uint8_t *buf, int buf_size, int tr
RETURN_ERROR(AVERROR(ENOMEM));
}
av_init_packet(&st->attached_pic);
av_packet_unref(&st->attached_pic);
st->attached_pic.buf = data;
st->attached_pic.data = data->data;
st->attached_pic.size = len;