34#define AU_UNKNOWN_SIZE ((uint32_t)(~0))
39 uint16_t magic =
AV_RL32(p->buf);
40 if ((magic == 0x0B8D || magic == 0x0C0D || magic == 0x0C8D) &&
41 p->buf[2] ==
'S' && p->buf[3] ==
'O' &&
42 p->buf[4] ==
'L' && p->buf[5] == 0)
68 if (magic == 0x0B8D)
return 1;
72 else if (magic == 0x0C8D)
return 1;
86 unsigned int magic,
tag;
137 pkt->stream_index = 0;
int avio_feof(AVIOContext *s)
Similar to feof() but also returns nonzero on read errors.
unsigned int avio_rl16(AVIOContext *s)
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)
Public libavutil channel layout APIs header.
AVCodecID
Identify the syntax and semantics of the bitstream.
#define AV_PKT_FLAG_CORRUPT
The packet content is corrupted.
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.
#define AVERROR_EOF
End of file.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
#define MKTAG(a, b, c, d)
static int sol_probe(const AVProbeData *p)
static int sol_channels(int magic, int type)
static int sol_read_packet(AVFormatContext *s, AVPacket *pkt)
static int sol_read_header(AVFormatContext *s)
static enum AVCodecID sol_codec_id(int magic, int type)
static int sol_codec_type(int magic, int type)
AVChannelLayout ch_layout
The channel layout and number of channels.
enum AVMediaType codec_type
General type of the encoded data.
uint32_t codec_tag
Additional information about the codec (corresponds to the AVI FOURCC).
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.