[FFmpeg-cvslog] avformat/flac_picture: replace call to av_init_packet()

James Almer git at videolan.org
Wed Mar 17 21:16:43 EET 2021


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun Jan 31 16:59:07 2021 -0300| [4de3504adfb6699c56628edbf7d7ea52a8424607] | committer: James Almer

avformat/flac_picture: replace call to av_init_packet()

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4de3504adfb6699c56628edbf7d7ea52a8424607
---

 libavformat/flac_picture.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list