48 #define AVI_INDEX_CLUSTER_SIZE 16384
81 const char *riff_tag,
const char *list_tag)
102 tag[0] =
'0' + index / 10;
103 tag[1] =
'0' + index % 10;
123 int n, au_byterate, au_ssize, au_scale, nb_frames = 0;
156 int bitrate,
n, i, nb_frames, au_byterate, au_ssize, au_scale;
159 int64_t list1, list2, strh, strf;
226 for (i = 0; i <
n; i++) {
241 "Subtitle streams other than DivX XSUB are not supported by the AVI muxer.\n");
271 && au_byterate > 1000LL*au_scale) {
277 au_scale = au_byterate = 0;
330 av_log(s,
AV_LOG_ERROR,
"%s rawvideo cannot be written to avi, output file will be unreadable\n",
339 "Invalid or not supported codec type '%s' found in the input\n",
353 char* str =
av_asprintf(
"Subtitle - %s-xx;02", langstr);
361 unsigned char tag[5];
391 av_reduce(&num, &den, dar.num, dar.den, 0xFFFF);
426 for (i = 0; i < 248; i += 4)
436 padding =
s->metadata_header_padding;
443 for (i = padding; i > 0; i -= 4)
461 char ix_tag[] =
"ix00";
497 (ie->
flags & 0x10 ? 0 : 0x80000000));
528 int empty, stream_id = -1;
544 if (empty || tie->pos < ie->
pos) {
570 unsigned char tag[5];
571 unsigned int flags = 0;
595 empty_packet.
size = 0;
596 empty_packet.
data = NULL;
661 int i, j,
n, nb_frames;
679 for (n = nb_frames = 0; n < s->
nb_streams; n++) {
684 if (nb_frames < avist->packet_count)
717 .mime_type =
"video/x-msvideo",