Lines Matching defs:ctx
83 IVFEncContext *ctx = s->priv_data;
88 if (ctx->frame_cnt)
89 ctx->sum_delta_pts += pkt->pts - ctx->last_pts;
90 ctx->last_pkt_duration = pkt->duration;
91 ctx->frame_cnt++;
92 ctx->last_pts = pkt->pts;
100 IVFEncContext *ctx = s->priv_data;
103 (ctx->frame_cnt > 1 || (ctx->frame_cnt == 1 && ctx->last_pkt_duration))) {
108 avio_wl32(pb, ctx->last_pkt_duration ?
109 ctx->sum_delta_pts + ctx->last_pkt_duration :
110 ctx->frame_cnt * ctx->sum_delta_pts / (ctx->frame_cnt - 1));