diff mbox series

[FFmpeg-devel] avformat/avformat: Make AVProbeData extendible with the next major bump

Message ID 20200304222120.12699-1-michael@niedermayer.cc
State New
Headers show
Series [FFmpeg-devel] avformat/avformat: Make AVProbeData extendible with the next major bump
Related show

Checks

Context Check Description
andriy/ffmpeg-patchwork pending
andriy/ffmpeg-patchwork success Applied patch
andriy/ffmpeg-patchwork success Configure finished
andriy/ffmpeg-patchwork success Make finished
andriy/ffmpeg-patchwork success Make fate finished

Commit Message

Michael Niedermayer March 4, 2020, 10:21 p.m. UTC
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavformat/avformat.h | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 9b9b634ec3..bd99d4e4f2 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -448,6 +448,9 @@  typedef struct AVProbeData {
     unsigned char *buf; /**< Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero. */
     int buf_size;       /**< Size of buf except extra allocated bytes */
     const char *mime_type; /**< mime_type, when known. */
+#if LIBAVFORMAT_VERSION_MAJOR > 58
+    AVDictionary *dict; /**< Dictionary to allow the user to provide additional extendible fields */
+#endif
 } AVProbeData;
 
 #define AVPROBE_SCORE_RETRY (AVPROBE_SCORE_MAX/4)