57 g->first_in_pts =
pts;
106 for (
int i = 1;
i <=
g->delay;
i++)
111 g->window[0] =
pkt->pts;
112 for (
int i = 0;
i <
g->delay &&
g->window[
i] >
g->window[
i + 1];
i++)
122 "Generated dts %"PRId64
" does not increase over %"PRId64
"; "
123 "raise reorder_delay, or check that the input pts values "
124 "are strictly increasing.\n", dts,
g->prev_dts);
#define i(width, name, range_min, range_max)
common internal and external API header
void ff_dts_gen_fill_pkt(AVCodecContext *avctx, FFDTSGen *g, AVPacket *pkt)
static int64_t dts_gen_step(const AVCodecContext *avctx)
av_cold void ff_dts_gen_reset(FFDTSGen *g)
void ff_dts_gen_record_pts(FFDTSGen *g, int64_t pts)
av_cold int ff_dts_gen_init(const AVCodecContext *avctx, FFDTSGen *g, int delay)
#define FF_DTS_GEN_DELAY_SKIP
#define FF_DTS_GEN_DELAY_MAX
#define FF_DTS_GEN_DELAY_AUTO
#define AV_CODEC_PROP_REORDER
Codec supports frame reordering.
#define AV_LOG_VERBOSE
Detailed information.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq)
Rescale a 64-bit integer by 2 rational numbers.
#define AV_NOPTS_VALUE
Undefined timestamp value.
void av_log_once(void *avcl, int initial_level, int subsequent_level, int *state, const char *fmt,...)
#define FFSWAP(type, a, b)
main external API structure.
const struct AVCodecDescriptor * codec_descriptor
AVCodecDescriptor.
AVRational time_base
This is the fundamental unit of time (in seconds) in terms of which frame timestamps are represented.
int props
Codec properties, a combination of AV_CODEC_PROP_* flags.
This structure stores compressed data.
Rational number (pair of numerator and denominator).