diff options
author | James Almer <jamrial@gmail.com> | 2021-01-31 16:59:07 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-03-17 15:06:48 -0300 |
commit | 4de3504adfb6699c56628edbf7d7ea52a8424607 (patch) | |
tree | 352baa8a848ae4cc6d7447234f3ff244082ced1b | |
parent | 9e92fd97d0e4d518f5af7a33b97ebb1de7598c74 (diff) | |
download | ffmpeg-4de3504adfb6699c56628edbf7d7ea52a8424607.tar.gz |
avformat/flac_picture: replace call to av_init_packet()
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavformat/flac_picture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flac_picture.c b/libavformat/flac_picture.c index 53e24b28b7..f15cfa877a 100644 --- a/libavformat/flac_picture.c +++ b/libavformat/flac_picture.c @@ -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; |