Lines Matching refs:time_scale

1514     if (sc->time_scale) {
1534 sc->time_scale = avio_rb32(pb);
1535 if (sc->time_scale <= 0) {
1536 av_log(c->fc, AV_LOG_ERROR, "Invalid mdhd time scale %d, defaulting to 1\n", sc->time_scale);
1537 sc->time_scale = 1;
1547 st->time_scale = sc->time_scale;
1568 c->time_scale = avio_rb32(pb); /* time scale */
1569 if (c->time_scale <= 0) {
1570 av_log(c->fc, AV_LOG_ERROR, "Invalid mvhd time scale %d, defaulting to 1\n", c->time_scale);
1571 c->time_scale = 1;
1573 av_log(c->fc, AV_LOG_TRACE, "time scale = %i\n", c->time_scale);
1579 c->fc->duration = av_rescale(c->duration, AV_TIME_BASE, c->time_scale);
2557 !st->codecpar->sample_rate && sc->time_scale > 1)
2558 st->codecpar->sample_rate = sc->time_scale;
3490 *edit_list_duration = av_rescale(*edit_list_duration, msc->time_scale,
3881 &edit_list_duration, mov->time_scale)) {
3916 search_timestamp = FFMAX(search_timestamp - msc->time_scale, e_old[0].timestamp);
4226 if ((empty_duration || start_time) && mov->time_scale > 0) {
4228 empty_duration = av_rescale(empty_duration, sc->time_scale, mov->time_scale);
4386 st->codecpar->bit_rate = stream_size*8*sc->time_scale/st->duration;
4608 if (sc->time_scale <= 0) {
4610 sc->time_scale = c->time_scale;
4611 if (sc->time_scale <= 0)
4612 sc->time_scale = 1;
4665 avpriv_set_pts_info(st, 64, 1, sc->time_scale);
4703 sc->time_scale, sc->stts_data[0].duration, INT_MAX);
4734 && sc->time_scale == st->codecpar->sample_rate) {
5582 st->duration = sc->track_end = av_rescale(ref_st->duration, sc->time_scale, ref_sc->time_scale);
7811 sc->time_scale = 1;
8770 sc->time_scale*(int64_t)sc->nb_frames_for_fps, sc->duration_for_fps, INT_MAX);
8794 /* Akin to sc->data_size * 8 * sc->time_scale / st->duration but accounting for overflows. */
8795 st->codecpar->bit_rate = av_rescale(sc->data_size, ((int64_t) sc->time_scale) * 8, st->duration);
8798 sc->data_size, sc->time_scale);
8812 /* Akin to sc->data_size * 8 * sc->time_scale / sc->duration_for_fps but accounting for overflows. */
8813 st->codecpar->bit_rate = av_rescale(sc->data_size, ((int64_t) sc->time_scale) * 8, sc->duration_for_fps);
8816 sc->data_size, sc->time_scale);
8911 int64_t dts = av_rescale(current_sample->timestamp, AV_TIME_BASE, msc->time_scale);