mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-18 11:00:09 +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));
|
RETURN_ERROR(AVERROR(ENOMEM));
|
||||||
}
|
}
|
||||||
|
|
||||||
av_init_packet(&st->attached_pic);
|
av_packet_unref(&st->attached_pic);
|
||||||
st->attached_pic.buf = data;
|
st->attached_pic.buf = data;
|
||||||
st->attached_pic.data = data->data;
|
st->attached_pic.data = data->data;
|
||||||
st->attached_pic.size = len;
|
st->attached_pic.size = len;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user