summaryrefslogtreecommitdiff
path: root/libavformat/avformat.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-01-27 16:24:10 -0300
committerJames Almer <jamrial@gmail.com>2021-03-17 14:12:17 -0300
commitf7db77bd8785d1715d3e7ed7e69bd1cc991f2d07 (patch)
tree8f9a08a90696a47bb22ff18966eefa2b246d575f /libavformat/avformat.h
parenta1cd4191e0685256eafe47dd4f34237cfdb5f6fb (diff)
avcodec/packet: deprecate av_init_packet()
Once removed, sizeof(AVPacket) will stop being a part of the public ABI. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h4
1 files changed, 4 insertions, 0 deletions
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