]> git.sesse.net Git - ffmpeg/commitdiff
avformat/flac_picture: replace call to av_init_packet()
authorJames Almer <jamrial@gmail.com>
Sun, 31 Jan 2021 19:59:07 +0000 (16:59 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 17 Mar 2021 18:06:48 +0000 (15:06 -0300)
Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/flac_picture.c

index 53e24b28b741bfe50da87c2e7b86b490c1e49032..f15cfa877a26f6924019f1de59d388b8b0d2a9d5 100644 (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;