32 #include "libavutil/intreadwrite.h"
33 #include "libavutil/intfloat.h"
34 #include "libavutil/dict.h"
50 size_t comment_len = 0, comment_size;
54 comment_len = strlen(comment->
value);
55 comment_size =
FFALIGN(comment_len, 8);
81 ffio_fill(pb, 0, comment_size - comment_len);
97 int64_t num_samples = (file_size - sox->
header_size - 4LL) >> 2LL;
AVDictionaryEntry * av_dict_get(AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags)
Get a dictionary entry with matching key.
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...
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.
void ffio_fill(AVIOContext *s, int b, int count)
static int write_trailer(AVFormatContext *s1)
int sample_rate
samples per second
main external API structure.
AVIOContext * pb
I/O context.
static int sox_write_header(AVFormatContext *s)
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.
static int write_packet(AVFormatContext *s1, AVPacket *pkt)