30 if (p->
buf_size < 45 || memcmp(p->
buf,
"1bit", 4) ||
101 uint32_t text_offset, data_offset, channel_assign;
113 if (version < 0x10) {
137 if (!(channel_assign & 1)) {
139 for (i = 1; i < 32; i++)
140 if (channel_assign & (1 << i))
148 if (
avio_seek(pb, text_offset, SEEK_SET) >= 0) {
161 return avio_seek(pb, data_offset, SEEK_SET);
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AV_LOG_WARNING
Something somehow does not look correct.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
static int wsd_read_header(AVFormatContext *s)
void void avpriv_request_sample(void *avc, const char *msg,...) av_printf_format(2
Log a generic warning message about a missing feature.
unsigned int avio_rb32(AVIOContext *s)
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
#define AV_CH_LOW_FREQUENCY
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_RB32
AVInputFormat ff_wsd_demuxer
uint64_t channel_layout
Audio only.
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
int64_t bit_rate
The average bitrate of the encoded data (in bits per second).
AVDictionary * metadata
Metadata that applies to the whole file.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
enum AVMediaType codec_type
General type of the encoded data.
int avio_r8(AVIOContext *s)
int buf_size
Size of buf except extra allocated bytes.
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
#define AV_DICT_DONT_STRDUP_VAL
Take ownership of a value that's been allocated with av_malloc() or another memory allocation functio...
#define AV_CH_FRONT_LEFT_OF_CENTER
#define AV_CH_FRONT_CENTER
#define AV_CH_FRONT_RIGHT_OF_CENTER
AVIOContext * pb
I/O context.
static int wsd_to_av_channel_layoyt(AVFormatContext *s, int bit)
int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags)
Set the given entry in *pm, overwriting an existing entry.
static int get_metadata(AVFormatContext *s, const char *const tag, const unsigned size)
This structure contains the data a format has to probe a file.
char * av_timecode_make_smpte_tc_string(char *buf, uint32_t tcsmpte, int prevent_df)
Get the timecode string from the SMPTE timecode format.
#define AV_CH_BACK_CENTER
static int empty_string(const char *buf, unsigned size)
int sample_rate
Audio only.
struct AVInputFormat * iformat
The input container format.
#define AV_CH_FRONT_RIGHT
AVCodecParameters * codecpar
#define AV_TIMECODE_STR_SIZE
static int wsd_probe(AVProbeData *p)