diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-01-21 12:08:31 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-01-21 12:08:31 +0000 |
commit | 6c77805fc84a63b74e5025b4d7eeea24c8138cf3 (patch) | |
tree | 740e6a723ac8d45f686f7842068d65f337f4b549 /libavformat/avformat.h | |
parent | 5484dad7f6122a4d4dbc28e867a8c71d22ba2297 (diff) | |
download | ffmpeg-6c77805fc84a63b74e5025b4d7eeea24c8138cf3.tar.gz |
get rid of the [4] limitation of codec tag lists
Originally committed as revision 7596 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 7ebc880ac6..b3c398e8d2 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -162,7 +162,7 @@ typedef struct AVOutputFormat { * list of supported codec_id-codec_tag pairs, ordered by "better choice first" * the arrays are all CODEC_ID_NONE terminated */ - const struct AVCodecTag *codec_tag[4]; + const struct AVCodecTag **codec_tag; /* private fields */ struct AVOutputFormat *next; @@ -219,7 +219,7 @@ typedef struct AVInputFormat { (RTSP) */ int (*read_pause)(struct AVFormatContext *); - const struct AVCodecTag *codec_tag[4]; + const struct AVCodecTag **codec_tag; /* private fields */ struct AVInputFormat *next; @@ -408,8 +408,8 @@ void av_pkt_dump(FILE *f, AVPacket *pkt, int dump_payload); void av_register_all(void); /* codec tag <-> codec id */ -enum CodecID av_codec_get_id(const struct AVCodecTag *tags[4], unsigned int tag); -unsigned int av_codec_get_tag(const struct AVCodecTag *tags[4], enum CodecID id); +enum CodecID av_codec_get_id(const struct AVCodecTag **tags, unsigned int tag); +unsigned int av_codec_get_tag(const struct AVCodecTag **tags, enum CodecID id); /* media file input */ AVInputFormat *av_find_input_format(const char *short_name); |