]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/codec.h
avcodec/g722enc: Validate parameters before using them
[ffmpeg] / libavcodec / codec.h
index 713774a63298cd01d129343121b0daf65a55aea4..0ccbf0eb19f59a2382e44eac0768be8be2d8cf06 100644 (file)
@@ -236,7 +236,9 @@ typedef struct AVCodec {
      *****************************************************************
      */
     int priv_data_size;
+#if FF_API_NEXT
     struct AVCodec *next;
+#endif
     /**
      * @name Frame-level threading support functions
      * @{
@@ -318,7 +320,7 @@ typedef struct AVCodec {
      *
      * The user can only access this field via avcodec_get_hw_config().
      */
-    const struct AVCodecHWConfigInternal **hw_configs;
+    const struct AVCodecHWConfigInternal *const *hw_configs;
 
     /**
      * List of supported codec_tags, terminated by FF_CODEC_TAGS_END.