48 #define AVI_INDEX_CLUSTER_SIZE 16384
85 const char *riff_tag,
const char *list_tag)
106 tag[0] =
'0' + index / 10;
107 tag[1] =
'0' + index % 10;
127 int n, au_byterate, au_ssize, au_scale, nb_frames = 0;
160 int bitrate,
n, i, nb_frames, au_byterate, au_ssize, au_scale;
163 int64_t list1, list2, strh, strf;
230 for (i = 0; i <
n; i++) {
245 "Subtitle streams other than DivX XSUB are not supported by the AVI muxer.\n");
275 && au_byterate > 1000LL*au_scale) {
281 au_scale = au_byterate = 0;
334 av_log(s,
AV_LOG_ERROR,
"%s rawvideo cannot be written to avi, output file will be unreadable\n",
343 "Invalid or not supported codec type '%s' found in the input\n",
357 char* str =
av_asprintf(
"Subtitle - %s-xx;02", langstr);
365 unsigned char tag[5];
395 av_reduce(&num, &den, dar.num, dar.den, 0xFFFF);
430 for (i = 0; i < 248; i += 4)
440 padding =
s->metadata_header_padding;
447 for (i = padding; i > 0; i -= 4)
465 char ix_tag[] =
"ix00";
501 (ie->
flags & 0x10 ? 0 : 0x80000000));
532 int empty, stream_id = -1;
548 if (empty || tie->pos < ie->
pos) {
588 empty_packet.
size = 0;
589 empty_packet.
data = NULL;
600 unsigned char tag[5];
601 unsigned int flags = 0;
682 int i, j,
n, nb_frames;
705 for (n = nb_frames = 0; n < s->
nb_streams; n++) {
710 if (nb_frames < avist->packet_count)
743 .mime_type =
"video/x-msvideo",