[FFmpeg-cvslog] avformat: Mark AVOutputFormat argument in avformat_query_codec as const

Diego Biurrun git at videolan.org
Sun Jul 27 02:23:35 CEST 2014


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Sat Jul 26 02:50:59 2014 -0700| [7215fcf84032118ecd9fb54fb14154d69fea638d] | committer: Diego Biurrun

avformat: Mark AVOutputFormat argument in avformat_query_codec as const

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7215fcf84032118ecd9fb54fb14154d69fea638d
---

 libavformat/avformat.h |    3 ++-
 libavformat/utils.c    |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 3520506..db41836 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -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
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 7a054af..d34b35f 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -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) {



More information about the ffmpeg-cvslog mailing list