32 #include "libavutil/intreadwrite.h"
33 #include "libavutil/intfloat.h"
34 #include "libavutil/dict.h"
49 size_t comment_len = 0, comment_size;
53 comment_len = strlen(comment->
value);
54 comment_size = (comment_len + 7) & ~7;
80 for ( ; comment_size > comment_len; comment_len++)
104 int64_t num_samples = (file_size - sox->
header_size - 4LL) >> 2LL;
AVCodecContext * codec
Codec context associated with this stream.
void av_log(void *avcl, int level, const char *fmt,...) av_printf_format(3
Send the specified message to the log if the level is less than or equal to the current av_log_level...
static int sox_write_packet(AVFormatContext *s, AVPacket *pkt)
AVOutputFormat ff_sox_muxer
static av_always_inline void ffio_wfourcc(AVIOContext *pb, const uint8_t *s)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
void * priv_data
Format private data.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
int seekable
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.
AVStream ** streams
A list of all streams in the file.
int sample_rate
samples per second
main external API structure.
AVIOContext * pb
I/O context.
AVDictionary * metadata
Metadata that applies to the whole file.
static int sox_write_header(AVFormatContext *s)
AVDictionaryEntry * av_dict_get(const AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags)
Get a dictionary entry with matching key.
int channels
number of audio channels
static void write_header(FFV1Context *f)
static av_always_inline uint64_t av_double2int(double f)
Reinterpret a double as a 64-bit integer.
static int sox_write_trailer(AVFormatContext *s)
#define SOX_FIXED_HDR
Size of fixed header without magic.
This structure stores compressed data.