45 #define AVI_INDEX_CLUSTER_SIZE 16384
77 const char* riff_tag,
const char* list_tag)
98 tag[0] =
'0' + index/10;
99 tag[1] =
'0' + index%10;
119 int n, au_byterate, au_ssize, au_scale, nb_frames = 0;
153 int bitrate,
n, i, nb_frames, au_byterate, au_ssize, au_scale;
155 int64_t list1, list2, strh, strf;
233 av_log(s,
AV_LOG_ERROR,
"Subtitle streams other than DivX XSUB are not supported by the AVI muxer.\n");
255 && au_byterate > 1000LL*au_scale) {
261 au_scale = au_byterate = 0;
306 "Invalid or not supported codec type '%s' found in the input\n",
320 char* str =
av_asprintf(
"Subtitle - %s-xx;02", langstr);
328 unsigned char tag[5];
358 av_reduce(&num, &den, dar.num, dar.den, 0xFFFF);
392 for (i = 0; i < 248; i+= 4)
402 padding =
s->metadata_header_padding;
409 for (i = padding; i > 0; i -= 4)
427 char ix_tag[] =
"ix00";
463 (ie->
flags & 0x10 ? 0 : 0x80000000));
494 int empty, stream_id = -1;
510 if (empty || tie->pos < ie->
pos) {
538 unsigned char tag[5];
539 unsigned int flags=0;
555 empty_packet.
size= 0;
556 empty_packet.
data= NULL;
621 int i, j,
n, nb_frames;
644 if (nb_frames < avist->packet_count)
673 .mime_type =
"video/x-msvideo",