31#define AT1_SU_SIZE 212
40 int ch, block_size, score = 0;
43 if (ch != 1 && ch != 2)
51 for (
int i = 2048 + block_size;
i + block_size <= p->buf_size;
i += block_size) {
74 title[
sizeof(title) - 1] =
'\0';
108 .p.extensions =
"aea",
static int aea_read_probe(const AVProbeData *p)
static int aea_read_header(AVFormatContext *s)
const FFInputFormat ff_aea_demuxer
static int aea_read_packet(AVFormatContext *s, AVPacket *pkt)
#define AT1_SU_SIZE
number of bytes in a sound unit
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
unsigned int avio_rl32(AVIOContext *s)
int avio_r8(AVIOContext *s)
int ffio_read_size(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
#define i(width, name, range_min, range_max)
Public libavutil channel layout APIs header.
AVStream * avformat_new_stream(AVFormatContext *s, const struct AVCodec *c)
Add a new stream to a media file.
void av_channel_layout_default(AVChannelLayout *ch_layout, int nb_channels)
Get the default channel layout for a given number of channels.
int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags)
Set the given entry in *pm, overwriting an existing entry.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
int nb_channels
Number of channels in this layout.
AVChannelLayout ch_layout
The channel layout and number of channels.
int64_t bit_rate
The average bitrate of the encoded data (in bits per second).
enum AVMediaType codec_type
General type of the encoded data.
int block_align
The number of bytes per coded audio frame, required by some formats.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int sample_rate
The number of audio samples per second.
This structure stores compressed data.
This structure contains the data a format has to probe a file.
AVCodecParameters * codecpar
Codec parameters associated with this stream.