/*
- * ACT file format muxer/demuxer
+ * ACT file format demuxer
* Copyright (c) 2007-2008 Vladimir Voroshilov
*
* This file is part of FFmpeg.
*/
if (st->codec->sample_rate != 8000) {
av_log(s, AV_LOG_ERROR, "Sample rate %d is not supported.\n", st->codec->sample_rate);
- return AVERROR_NOFMT;
+ return AVERROR_INVALIDDATA;
}
st->codec->frame_size=80;
}
AVInputFormat ff_act_demuxer = {
- "act",
- "ACT Voice file format",
- sizeof(ACTContext),
- probe,
- read_header,
- read_packet
+ .name = "act",
+ .long_name = "ACT Voice file format",
+ .priv_data_size = sizeof(ACTContext),
+ .read_probe = probe,
+ .read_header = read_header,
+ .read_packet = read_packet,
};