Lines Matching refs:scratch
92 unsigned char scratch[256];
101 if (avio_read(pb, scratch, 16) != 16)
103 data_offset = AV_RB32(&scratch[4]);
104 film->version = AV_RB32(&scratch[8]);
109 if (avio_read(pb, scratch, 20) != 20)
118 if (avio_read(pb, scratch, 32) != 32)
120 film->audio_samplerate = AV_RB16(&scratch[24]);
121 film->audio_channels = scratch[21];
122 film->audio_bits = scratch[22];
123 if (scratch[23] == 2 && film->audio_channels > 0)
136 if (AV_RB32(&scratch[0]) != FDSC_TAG)
139 if (AV_RB32(&scratch[8]) == CVID_TAG) {
141 } else if (AV_RB32(&scratch[8]) == RAW_TAG) {
159 st->codecpar->width = AV_RB32(&scratch[16]);
160 st->codecpar->height = AV_RB32(&scratch[12]);
163 if (scratch[20] == 24) {
166 av_log(s, AV_LOG_ERROR, "raw video is using unhandled %dbpp\n", scratch[20]);
198 if (avio_read(pb, scratch, 16) != 16)
200 if (AV_RB32(&scratch[0]) != STAB_TAG)
202 film->base_clock = AV_RB32(&scratch[8]);
203 film->sample_count = AV_RB32(&scratch[12]);
219 if (avio_read(pb, scratch, 16) != 16)
222 data_offset + AV_RB32(&scratch[0]);
223 film->sample_table[i].sample_size = AV_RB32(&scratch[4]);
226 if (AV_RB32(&scratch[8]) == 0xFFFFFFFF) {
238 film->sample_table[i].pts = AV_RB32(&scratch[8]) & 0x7FFFFFFF;
239 film->sample_table[i].keyframe = (scratch[8] & 0x80) ? 0 : AVINDEX_KEYFRAME;