diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2008-11-08 18:37:03 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2008-11-08 18:37:03 +0000 |
commit | 15545a095a01b981a5d691d7bd6081b8b1b7d209 (patch) | |
tree | 6cbcd71108738f6e2c82938c7ee73633d7d647b1 /libavformat/utils.c | |
parent | 502ecc97af848318d305558f6dc4be16b6af3dd5 (diff) | |
download | ffmpeg-15545a095a01b981a5d691d7bd6081b8b1b7d209.tar.gz |
Fix argument constness for the av_codec_get_id() and
av_codec_get_tag() functions, making them take in input a constant
array, since they're not supposed to change it. Fix some warnings.
Originally committed as revision 15795 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index e23eb88c3d..7a91b0f009 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1938,7 +1938,7 @@ enum CodecID codec_get_id(const AVCodecTag *tags, unsigned int tag) return CODEC_ID_NONE; } -unsigned int av_codec_get_tag(const AVCodecTag *tags[4], enum CodecID id) +unsigned int av_codec_get_tag(const AVCodecTag * const *tags, enum CodecID id) { int i; for(i=0; tags && tags[i]; i++){ @@ -1948,7 +1948,7 @@ unsigned int av_codec_get_tag(const AVCodecTag *tags[4], enum CodecID id) return 0; } -enum CodecID av_codec_get_id(const AVCodecTag *tags[4], unsigned int tag) +enum CodecID av_codec_get_id(const AVCodecTag * const *tags, unsigned int tag) { int i; for(i=0; tags && tags[i]; i++){ |