50 sscanf(buffer,
"%"SCNd32, &header_size);
60 if (!memcmp(buffer,
"end_head", 8)) {
86 }
else if (!memcmp(buffer,
"channel_count", 13)) {
88 }
else if (!memcmp(buffer,
"sample_byte_format", 18)) {
89 sscanf(buffer,
"%*s %*s %31s",
format);
99 }
else if (!memcmp(buffer,
"sample_coding", 13)) {
100 sscanf(buffer,
"%*s %*s %31s", coding);
101 }
else if (!memcmp(buffer,
"sample_count", 12)) {
102 sscanf(buffer,
"%*s %*s %"SCNd64, &st->
duration);
103 }
else if (!memcmp(buffer,
"sample_n_bytes", 14)) {
104 sscanf(buffer,
"%*s %*s %"SCNd32, &bps);
105 }
else if (!memcmp(buffer,
"sample_rate", 11)) {
107 }
else if (!memcmp(buffer,
"sample_sig_bits", 15)) {
110 char key[32],
value[32];
111 if (sscanf(buffer,
"%31s %*s %31s", key, value) == 3) {
123 .
name =
"nistsphere",
129 .extensions =
"nist,sph",
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
int64_t avio_skip(AVIOContext *s, int64_t offset)
Skip given number of bytes forward.
int block_align
number of bytes per packet if constant and known or 0 Used by some WAV based audio codecs...
void void avpriv_request_sample(void *avc, const char *msg,...) av_printf_format(2
Log a generic warning message about a missing feature.
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
#define AVERROR_EOF
End of file.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
static int nist_read_header(AVFormatContext *s)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
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. ...
AVCodecContext * codec
Codec context associated with this stream.
unsigned char * buf
Buffer must have AVPROBE_PADDING_SIZE of extra allocated bytes filled with zero.
int av_strcasecmp(const char *a, const char *b)
Locale-independent case-insensitive compare.
static int nist_probe(AVProbeData *p)
GLsizei GLboolean const GLfloat * value
#define AV_DICT_APPEND
If the entry already exists, append to it.
int ff_get_line(AVIOContext *s, char *buf, int maxlen)
Read a whole line of text from AVIOContext.
#define AVERROR_PATCHWELCOME
Not yet implemented in FFmpeg, patches welcome.
enum AVMediaType codec_type
int sample_rate
samples per second
AVIOContext * pb
I/O context.
static const char * format
int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags)
Set the given entry in *pm, overwriting an existing entry.
AVInputFormat ff_nistsphere_demuxer
This structure contains the data a format has to probe a file.
int64_t duration
Decoding: duration of the stream, in stream time base.
int channels
number of audio channels
int avio_feof(AVIOContext *s)
feof() equivalent for AVIOContext.