52 len = strlen(tag->
value);
53 len =
FFMIN(len, maxlen);
63 uint64_t time_reference = 0;
73 time_reference = strtoll(tmp_tag->
value,
NULL, 10);
78 unsigned char umidpart_str[17] = {0};
83 for (i = 0; i < len/16; i++) {
84 memcpy(umidpart_str, tmp_tag->
value + 2 + (i*16), 16);
85 umidpart = strtoll(umidpart_str,
NULL, 16);
115 desc ? desc->
name :
"unknown");
173 avio_wl32(pb, (uint32_t)(file_size - 8));
180 int number_of_samples;
193 #define OFFSET(x) offsetof(WAVMuxContext, x) 194 #define ENC AV_OPT_FLAG_ENCODING_PARAM 210 .mime_type =
"audio/x-wav",
void avio_wb64(AVIOContext *s, uint64_t val)
void avio_wl16(AVIOContext *s, unsigned int val)
AVOutputFormat ff_wav_muxer
void ff_end_tag(AVIOContext *pb, int64_t start)
int64_t ff_start_tag(AVIOContext *pb, const char *tag)
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
av_log(ac->avr, AV_LOG_TRACE, "%d samples - audio_convert: %s to %s (%s)\, len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt), use_generic ? ac->func_descr_generic :ac->func_descr)
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
int ff_put_wav_header(AVFormatContext *s, AVIOContext *pb, AVCodecParameters *par)
static int wav_write_trailer(AVFormatContext *s)
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
static int wav_write_header(AVFormatContext *s)
void avio_wl32(AVIOContext *s, unsigned int val)
int64_t duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
AVStream ** streams
A list of all streams in the file.
AVDictionaryEntry * av_dict_get(const AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags)
Get a dictionary entry with matching key.
static av_always_inline int64_t avio_tell(AVIOContext *s)
ftell() equivalent for AVIOContext.
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
static av_always_inline void ffio_wfourcc(AVIOContext *pb, const uint8_t *s)
void avio_wl64(AVIOContext *s, uint64_t val)
static int wav_write_packet(AVFormatContext *s, AVPacket *pkt)
#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. ...
static void bwf_write_bext_chunk(AVFormatContext *s)
const AVCodecTag ff_codec_wav_tags[]
const AVCodecDescriptor * avcodec_descriptor_get(enum AVCodecID id)
int seekable
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.
int void avio_flush(AVIOContext *s)
int64_t av_rescale(int64_t a, int64_t b, int64_t c)
Rescale a 64-bit integer with rounding to nearest.
void ffio_fill(AVIOContext *s, int b, int count)
static const AVClass wav_muxer_class
internal header for RIFF based (de)muxers do NOT include this in end user applications ...
int avio_put_str(AVIOContext *s, const char *str)
Write a NULL-terminated string.
AVIOContext * pb
I/O context.
static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost)
static void bwf_write_bext_string(AVFormatContext *s, const char *key, int maxlen)
void ff_riff_write_info(AVFormatContext *s)
Write all recognized RIFF tags from s->metadata.
Describe the class of an AVClass context structure.
const char * name
Name of the codec described by this descriptor.
This struct describes the properties of a single codec described by an AVCodecID. ...
int sample_rate
Audio only.
static const AVOption options[]
common internal and external API header
void * priv_data
Format private data.
static void write_header(FFV1Context *f)
AVCodecParameters * codecpar
uint32_t codec_tag
Additional information about the codec (corresponds to the AVI FOURCC).
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented...
This structure stores compressed data.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...
#define AV_NOPTS_VALUE
Undefined timestamp value.