]> git.sesse.net Git - ffmpeg/commitdiff
avformat/avformat.h: add missing FF_API_NEXT wrappers
authorJames Almer <jamrial@gmail.com>
Sun, 11 Oct 2020 02:54:17 +0000 (23:54 -0300)
committerJames Almer <jamrial@gmail.com>
Sun, 11 Oct 2020 02:58:26 +0000 (23:58 -0300)
Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/avformat.h

index c8c0b6c08d02d14426b032a78843944e6cf9dea1..acfe25239d34a2fa81692ce445ce522d08caec3f 100644 (file)
@@ -534,7 +534,9 @@ typedef struct AVOutputFormat {
 #else
 #define ff_const59 const
 #endif
+#if FF_API_NEXT
     ff_const59 struct AVOutputFormat *next;
+#endif
     /**
      * size of private data so that it can be allocated in the wrapper
      */
@@ -679,7 +681,9 @@ typedef struct AVInputFormat {
      * New public fields should be added right above.
      *****************************************************************
      */
+#if FF_API_NEXT
     ff_const59 struct AVInputFormat *next;
+#endif
 
     /**
      * Raw demuxers store their codec ID here.