avformat: Mark AVOutputFormat argument in avformat_query_codec as const
authorDiego Biurrun <diego@biurrun.de>
Sat, 26 Jul 2014 09:50:59 +0000 (02:50 -0700)
committerDiego Biurrun <diego@biurrun.de>
Sat, 26 Jul 2014 21:51:16 +0000 (14:51 -0700)
libavformat/avformat.h
libavformat/utils.c

index 3520506..db41836 100644 (file)
@@ -1911,7 +1911,8 @@ int av_match_ext(const char *filename, const char *extensions);
  * @return 1 if codec with ID codec_id can be stored in ofmt, 0 if it cannot.
  *         A negative number if this information is not available.
  */
-int avformat_query_codec(AVOutputFormat *ofmt, enum AVCodecID codec_id, int std_compliance);
+int avformat_query_codec(const AVOutputFormat *ofmt, enum AVCodecID codec_id,
+                         int std_compliance);
 
 /**
  * @defgroup riff_fourcc RIFF FourCCs
index 7a054af..d34b35f 100644 (file)
@@ -3049,7 +3049,7 @@ int64_t ff_iso8601_to_unix_time(const char *datestr)
 #endif
 }
 
-int avformat_query_codec(AVOutputFormat *ofmt, enum AVCodecID codec_id,
+int avformat_query_codec(const AVOutputFormat *ofmt, enum AVCodecID codec_id,
                          int std_compliance)
 {
     if (ofmt) {