diff mbox series

[FFmpeg-devel,18/48] avformat/flac_picture: replace call to av_init_packet()

Message ID 20210305163339.63164-19-jamrial@gmail.com
State New
Headers show
Series deprecate av_init_packet() and sizeof(AVPacket) as part of the ABI
Related show


Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

James Almer March 5, 2021, 4:33 p.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
 libavformat/flac_picture.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series


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
-    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;