Searched refs:desc_idx (Results 1 – 2 of 2) sorted by relevance
184 size_t desc_idx = traf.header.sample_description_index; in Init() local185 if (!desc_idx) desc_idx = trex->default_sample_description_index; in Init()186 RCHECK(desc_idx > 0); // Descriptions are one-indexed in the file in Init()187 desc_idx -= 1; in Init()220 if (desc_idx > stsd.audio_entries.size()) in Init()221 desc_idx = 0; in Init()222 tri.audio_description = &stsd.audio_entries[desc_idx]; in Init()225 if (desc_idx > stsd.video_entries.size()) in Init()226 desc_idx = 0; in Init()227 tri.video_description = &stsd.video_entries[desc_idx]; in Init()
179 size_t desc_idx = 0; in ParseMoov() local183 desc_idx = trex.default_sample_description_index; in ParseMoov()187 RCHECK(desc_idx > 0); in ParseMoov()188 desc_idx -= 1; // BMFF descriptor index is one-based in ParseMoov()195 if (desc_idx >= samp_descr.audio_entries.size()) in ParseMoov()196 desc_idx = 0; in ParseMoov()197 const AudioSampleEntry& entry = samp_descr.audio_entries[desc_idx]; in ParseMoov()267 if (desc_idx >= samp_descr.video_entries.size()) in ParseMoov()268 desc_idx = 0; in ParseMoov()269 const VideoSampleEntry& entry = samp_descr.video_entries[desc_idx]; in ParseMoov()