Lines Matching refs:time_scale
1462 if (sc->time_scale) { in mov_read_mdhd()
1482 sc->time_scale = avio_rb32(pb); in mov_read_mdhd()
1483 if (sc->time_scale <= 0) { in mov_read_mdhd()
1484 … av_log(c->fc, AV_LOG_ERROR, "Invalid mdhd time scale %d, defaulting to 1\n", sc->time_scale); in mov_read_mdhd()
1485 sc->time_scale = 1; in mov_read_mdhd()
1512 c->time_scale = avio_rb32(pb); /* time scale */ in mov_read_mvhd()
1513 if (c->time_scale <= 0) { in mov_read_mvhd()
1514 av_log(c->fc, AV_LOG_ERROR, "Invalid mvhd time scale %d, defaulting to 1\n", c->time_scale); in mov_read_mvhd()
1515 c->time_scale = 1; in mov_read_mvhd()
1517 av_log(c->fc, AV_LOG_TRACE, "time scale = %i\n", c->time_scale); in mov_read_mvhd()
1523 c->fc->duration = av_rescale(c->duration, AV_TIME_BASE, c->time_scale); in mov_read_mvhd()
2392 !st->codecpar->sample_rate && sc->time_scale > 1) in mov_finalize_stsd_codec()
2393 st->codecpar->sample_rate = sc->time_scale; in mov_finalize_stsd_codec()
3183 *edit_list_duration = av_rescale(*edit_list_duration, msc->time_scale, in get_edit_list_entry()
3567 &edit_list_duration, mov->time_scale)) { in mov_fix_index()
3602 search_timestamp = FFMAX(search_timestamp - msc->time_scale, e_old[0].timestamp); in mov_fix_index()
3837 if ((empty_duration || start_time) && mov->time_scale > 0) { in mov_build_index()
3839 empty_duration = av_rescale(empty_duration, sc->time_scale, mov->time_scale); in mov_build_index()
4011 st->codecpar->bit_rate = stream_size*8*sc->time_scale/st->duration; in mov_build_index()
4233 if (sc->time_scale <= 0) { in fix_timescale()
4235 sc->time_scale = c->time_scale; in fix_timescale()
4236 if (sc->time_scale <= 0) in fix_timescale()
4237 sc->time_scale = 1; in fix_timescale()
4286 avpriv_set_pts_info(st, 64, 1, sc->time_scale); in mov_read_trak()
4324 sc->time_scale, sc->stts_data[0].duration, INT_MAX); in mov_read_trak()
4355 && sc->time_scale == st->codecpar->sample_rate) { in mov_read_trak()
5185 … st->duration = sc->track_end = av_rescale(ref_st->duration, sc->time_scale, ref_sc->time_scale); in mov_read_sidx()
7700 sc->time_scale*(int64_t)sc->nb_frames_for_fps, sc->duration_for_fps, INT_MAX); in mov_read_header()
7724 if (sc->data_size > INT64_MAX / sc->time_scale / 8) { in mov_read_header()
7726 sc->data_size, sc->time_scale); in mov_read_header()
7730 st->codecpar->bit_rate = sc->data_size * 8 * sc->time_scale / st->duration; in mov_read_header()
7740 if (sc->data_size > INT64_MAX / sc->time_scale / 8) { in mov_read_header()
7742 sc->data_size, sc->time_scale); in mov_read_header()
7746 st->codecpar->bit_rate = sc->data_size * 8 * sc->time_scale / in mov_read_header()
7840 int64_t dts = av_rescale(current_sample->timestamp, AV_TIME_BASE, msc->time_scale); in mov_find_next_sample()