From f7db77bd8785d1715d3e7ed7e69bd1cc991f2d07 Mon Sep 17 00:00:00 2001 From: James Almer Date: Wed, 27 Jan 2021 16:24:10 -0300 Subject: avcodec/packet: deprecate av_init_packet() Once removed, sizeof(AVPacket) will stop being a part of the public ABI. Signed-off-by: James Almer --- libavformat/avformat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libavformat/avformat.h') diff --git a/libavformat/avformat.h b/libavformat/avformat.h index e3bd01ec7f..f781c1c118 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -954,7 +954,11 @@ typedef struct AVStream { * decoding: set by libavformat, must not be modified by the caller. * encoding: unused */ +#if FF_API_INIT_PACKET AVPacket attached_pic; +#else + AVPacket *attached_pic; +#endif /** * An array of side data that applies to the whole stream (i.e. the -- cgit v1.2.3