48 #define AVI_INDEX_CLUSTER_SIZE 16384
87 const char *riff_tag,
const char *list_tag)
109 tag[0] =
'0' + index / 10;
110 tag[1] =
'0' + index % 10;
130 int n, au_byterate, au_ssize, au_scale, nb_frames = 0;
163 int bitrate,
n, i, nb_frames, au_byterate, au_ssize, au_scale;
166 int64_t list1, list2, strh, strf;
233 for (i = 0; i <
n; i++) {
248 "Subtitle streams other than DivX XSUB are not supported by the AVI muxer.\n");
278 && au_byterate > 1000LL*au_scale) {
284 au_scale = au_byterate = 0;
337 av_log(s,
AV_LOG_ERROR,
"%s rawvideo cannot be written to avi, output file will be unreadable\n",
346 "Invalid or not supported codec type '%s' found in the input\n",
360 char* str =
av_asprintf(
"Subtitle - %s-xx;02", langstr);
368 unsigned char tag[5];
398 av_reduce(&num, &den, dar.num, dar.den, 0xFFFF);
433 for (i = 0; i < 248; i += 4)
443 padding =
s->metadata_header_padding;
450 for (i = padding; i > 0; i -= 4)
468 char ix_tag[] =
"ix00";
482 int au_byterate, au_ssize, au_scale;
505 (ie->
flags & 0x10 ? 0 : 0x80000000));
525 avio_wl32(pb, audio_segm_size / au_ssize);
545 int empty, stream_id = -1;
561 if (empty || tie->pos < ie->
pos) {
601 empty_packet.
size = 0;
613 unsigned char tag[5];
614 unsigned int flags = 0;
695 int i, j,
n, nb_frames;
718 for (n = nb_frames = 0; n < s->
nb_streams; n++) {
723 if (nb_frames < avist->packet_count)
756 .mime_type =
"video/x-msvideo",