103 ch_chunksize=charset_size/lifetime;
106 if(pkt->
data) num_frames = lifetime;
109 for(i = 0; i < num_frames; i++) {
115 for(j = 0; j < ch_chunksize; j++)
avio_w8(s->
pb, 0);
123 for(j = 0; j < frame_size; j++)
avio_w8(s->
pb, 0);
169 .extensions =
"a64, A64",
AV_WL32 AV_WL24 AV_WL16 AV_RB32
int av_new_packet(AVPacket *pkt, int size)
Allocate the payload of a packet and initialize its fields with default values.
struct A64Context A64Context
static int a64_write_packet(struct AVFormatContext *s, AVPacket *pkt)
AVOutputFormat ff_a64_muxer
static int a64_write_header(struct AVFormatContext *s)
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
void av_destruct_packet(AVPacket *pkt)
Default packet destructor.
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
struct A64MuxerContext A64MuxerContext
void av_log(void *avcl, int level, const char *fmt,...)
AVCodecContext * codec
codec context
static int a64_write_trailer(struct AVFormatContext *s)
int void avio_flush(AVIOContext *s)
void avio_w8(AVIOContext *s, int b)
main external API structure.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
a64 video encoder - basic headers
void * priv_data
Format private data.