47 #define AUDIO_FORMAT_SIGNED 401
62 if (size < 0 || size == INT_MAX)
80 v = strtol(s,
NULL, 10);
124 if (!strcmp(name,
"__NUM_I_TRACKS")) {
126 }
else if (!strcmp(name,
"__NUM_A_TRACKS")) {
128 }
else if (!strcmp(name,
"COMMENT") || !strcmp(name,
"TITLE")) {
130 }
else if (!strcmp(name,
"LOOP_MODE") || !strcmp(name,
"NUM_LOOPS") ||
131 !strcmp(name,
"OPTIMIZED")) {
148 if (!strcmp(name,
"__DIR_COUNT")) {
150 }
else if (!strcmp(name,
"AUDIO_FORMAT")) {
152 }
else if (!strcmp(name,
"COMPRESSION")) {
154 }
else if (!strcmp(name,
"DEFAULT_VOL")) {
156 }
else if (!strcmp(name,
"NUM_CHANNELS")) {
158 }
else if (!strcmp(name,
"SAMPLE_RATE")) {
161 }
else if (!strcmp(name,
"SAMPLE_WIDTH")) {
177 if (!strcmp(name,
"__DIR_COUNT")) {
179 }
else if (!strcmp(name,
"COMPRESSION")) {
183 if (!strcmp(str,
"1")) {
185 }
else if (!strcmp(str,
"2")) {
188 }
else if (!strcmp(str,
"3")) {
190 }
else if (!strcmp(str,
"10")) {
192 }
else if (!strcmp(str,
"MVC2")) {
198 }
else if (!strcmp(name,
"FPS")) {
202 }
else if (!strcmp(name,
"HEIGHT")) {
204 }
else if (!strcmp(name,
"PIXEL_ASPECT")) {
209 }
else if (!strcmp(name,
"WIDTH")) {
211 }
else if (!strcmp(name,
"ORIENTATION")) {
216 }
else if (!strcmp(name,
"Q_SPATIAL") || !strcmp(name,
"Q_TEMPORAL")) {
218 }
else if (!strcmp(name,
"INTERLACING") || !strcmp(name,
"PACKING")) {
235 for (i = 0; i <
count; i++) {
239 name[
sizeof(
name) - 1] = 0;
245 if (
parse(avctx, st, name, size) < 0) {
255 uint64_t timestamp = 0;
297 vst->avg_frame_rate =
av_inv_q(vst->time_base);
312 vst->codec->codec_tag = 0;
337 for (i = 0; i < vst->nb_frames; i++) {
346 }
else if (!version &&
avio_rb16(pb) == 3) {
368 "Audio compression %i (format %i, sr %i)",
414 if (frame < st->nb_index_entries) {
417 if (index->
pos > pos)
419 else if (index->
pos < pos) {
453 int64_t timestamp,
int flags)
470 mv->
frame[i] = frame;