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

Michael Niedermayer michael at niedermayer.cc
Thu Mar 5 00:21:20 EET 2020


Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
 libavformat/avformat.h | 3 +++
 1 file changed, 3 insertions(+)

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)
-- 
2.17.1



More information about the ffmpeg-devel mailing list