mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-26 21:10:34 +00:00
avformat/flac_picture: replace call to av_init_packet()
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
9e92fd97d0
commit
4de3504adf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user