aiff_read_packet,
aiff_read_close,
aiff_read_seek,
- .codec_tag= {codec_aiff_tags},
+ .codec_tag= (const AVCodecTag*[]){codec_aiff_tags, 0},
};
#endif
aiff_write_header,
aiff_write_packet,
aiff_write_trailer,
- .codec_tag= {codec_aiff_tags},
+ .codec_tag= (const AVCodecTag*[]){codec_aiff_tags, 0},
};
#endif
asf_write_packet,
asf_write_trailer,
.flags = AVFMT_GLOBALHEADER,
- .codec_tag= {codec_asf_bmp_tags, codec_bmp_tags, codec_wav_tags},
+ .codec_tag= (const AVCodecTag*[]){codec_asf_bmp_tags, codec_bmp_tags, codec_wav_tags, 0},
};
#endif
asf_write_packet,
asf_write_trailer,
.flags = AVFMT_GLOBALHEADER,
- .codec_tag= {codec_asf_bmp_tags, codec_bmp_tags, codec_wav_tags},
+ .codec_tag= (const AVCodecTag*[]){codec_asf_bmp_tags, codec_bmp_tags, codec_wav_tags, 0},
};
#endif //CONFIG_ASF_STREAM_MUXER
au_read_packet,
au_read_close,
pcm_read_seek,
- .codec_tag= {codec_au_tags},
+ .codec_tag= (const AVCodecTag*[]){codec_au_tags, 0},
};
#endif
au_write_header,
au_write_packet,
au_write_trailer,
- .codec_tag= {codec_au_tags},
+ .codec_tag= (const AVCodecTag*[]){codec_au_tags, 0},
};
#endif //CONFIG_AU_MUXER
* 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;
(RTSP) */
int (*read_pause)(struct AVFormatContext *);
- const struct AVCodecTag *codec_tag[4];
+ const struct AVCodecTag **codec_tag;
/* private fields */
struct AVInputFormat *next;
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);
avi_write_header,
avi_write_packet,
avi_write_trailer,
- .codec_tag= {codec_bmp_tags, codec_wav_tags},
+ .codec_tag= (const AVCodecTag*[]){codec_bmp_tags, codec_wav_tags, 0},
};
#endif //CONFIG_AVI_MUXER
flv_write_header,
flv_write_packet,
flv_write_trailer,
- .codec_tag= {flv_video_codec_ids, flv_audio_codec_ids},
+ .codec_tag= (const AVCodecTag*[]){flv_video_codec_ids, flv_audio_codec_ids, 0},
};
unsigned int av_codec_get_tag(const AVCodecTag *tags[4], enum CodecID id)
{
int i;
- for(i=0; i<4 && tags[i]; i++){
+ for(i=0; tags && tags[i]; i++){
int tag= codec_get_tag(tags[i], id);
if(tag) return tag;
}
enum CodecID av_codec_get_id(const AVCodecTag *tags[4], unsigned int tag)
{
int i;
- for(i=0; i<4 && tags[i]; i++){
+ for(i=0; tags && tags[i]; i++){
enum CodecID id= codec_get_id(tags[i], tag);
if(id!=CODEC_ID_NONE) return id;
}
voc_read_header,
voc_read_packet,
voc_read_close,
- .codec_tag={voc_codec_tags},
+ .codec_tag=(const AVCodecTag*[]){voc_codec_tags, 0},
};
voc_write_header,
voc_write_packet,
voc_write_trailer,
- .codec_tag={voc_codec_tags},
+ .codec_tag=(const AVCodecTag*[]){voc_codec_tags, 0},
};
wav_read_packet,
wav_read_close,
wav_read_seek,
- .codec_tag= {codec_wav_tags},
+ .codec_tag= (const AVCodecTag*[]){codec_wav_tags, 0},
};
#endif
#ifdef CONFIG_WAV_MUXER
wav_write_header,
wav_write_packet,
wav_write_trailer,
- .codec_tag= {codec_wav_tags},
+ .codec_tag= (const AVCodecTag*[]){codec_wav_tags, 0},
};
#endif