33 if (
s->nb_streams != 1) {
37 par =
s->streams[0]->codecpar;
102 (
ctx->frame_cnt > 1 || (
ctx->frame_cnt == 1 &&
ctx->last_pkt_duration))) {
108 ctx->sum_delta_pts +
ctx->last_pkt_duration :
109 ctx->frame_cnt *
ctx->sum_delta_pts / (
ctx->frame_cnt - 1));
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
#define AVIO_SEEKABLE_NORMAL
Seeking works like for a local file.
void avio_wl64(AVIOContext *s, uint64_t val)
void avio_wl32(AVIOContext *s, unsigned int val)
void avio_wl16(AVIOContext *s, unsigned int val)
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)
#define MKTAG(a, b, c, d)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static const AVCodecTag codec_ivf_tags[]
static int ivf_write_packet(AVFormatContext *s, AVPacket *pkt)
AVOutputFormat ff_ivf_muxer
static int ivf_write_header(AVFormatContext *s)
static int ivf_init(AVFormatContext *s)
static int ivf_write_trailer(AVFormatContext *s)
common internal API header
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
This struct describes the properties of an encoded stream.
enum AVMediaType codec_type
General type of the encoded data.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int seekable
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.
This structure stores compressed data.
int64_t duration
Duration of this packet in AVStream->time_base units, 0 if unknown.
int64_t pts
Presentation timestamp in AVStream->time_base units; the time at which the decompressed packet will b...
uint64_t last_pkt_duration