Lines Matching refs:time_base
69 AVRational *time_base = &fmt_ctx->streams[pkt->stream_index]->time_base;
72 av_ts2str(pkt->pts), av_ts2timestr(pkt->pts, time_base),
73 av_ts2str(pkt->dts), av_ts2timestr(pkt->dts, time_base),
74 av_ts2str(pkt->duration), av_ts2timestr(pkt->duration, time_base),
78 static int write_frame(AVFormatContext *fmt_ctx, const AVRational *time_base, AVStream *st, AVPacket *pkt)
81 av_packet_rescale_ts(pkt, *time_base, st->time_base);
133 c->time_base.den = STREAM_FRAME_RATE;
134 c->time_base.num = 1;
250 if (av_compare_ts(ost->next_pts, ost->st->codec->time_base,
315 frame->pts = av_rescale_q(samples_count, (AVRational){1, c->sample_rate}, c->time_base);
326 ret = write_frame(oc, &c->time_base, ost->st, &pkt);
430 if (av_compare_ts(ost->next_pts, ost->st->codec->time_base,
491 av_packet_rescale_ts(&pkt, c->time_base, ost->st->time_base);
506 ret = write_frame(oc, &c->time_base, ost->st, &pkt);
613 (!encode_audio || av_compare_ts(video_st.next_pts, video_st.st->codec->time_base,
614 audio_st.next_pts, audio_st.st->codec->time_base) <= 0)) {