Revision eac4e4d9
libavformat/avienc.c | ||
---|---|---|
318 | 318 |
avio_w8(pb, 0); /* bIndexSubType (0 == frame index) */ |
319 | 319 |
avio_w8(pb, 0); /* bIndexType (0 == AVI_INDEX_OF_INDEXES) */ |
320 | 320 |
avio_wl32(pb, 0); /* nEntriesInUse (will fill out later on) */ |
321 |
ffio_wfourcc(pb, avi_stream2fourcc(&tag[0], i, stream->codec_type));
|
|
321 |
ffio_wfourcc(pb, avi_stream2fourcc(tag, i, stream->codec_type));
|
|
322 | 322 |
/* dwChunkId */ |
323 | 323 |
avio_wl64(pb, 0); /* dwReserved[3] |
324 | 324 |
avio_wl32(pb, 0); Must be 0. */ |
... | ... | |
415 | 415 |
AVIStream *avist= s->streams[i]->priv_data; |
416 | 416 |
int64_t ix, pos; |
417 | 417 |
|
418 |
avi_stream2fourcc(&tag[0], i, s->streams[i]->codec->codec_type);
|
|
418 |
avi_stream2fourcc(tag, i, s->streams[i]->codec->codec_type);
|
|
419 | 419 |
ix_tag[3] = '0' + i; |
420 | 420 |
|
421 | 421 |
/* Writing AVI OpenDML leaf index chunk */ |
422 | 422 |
ix = url_ftell(pb); |
423 |
ffio_wfourcc(pb, &ix_tag[0]); /* ix?? */
|
|
423 |
ffio_wfourcc(pb, ix_tag); /* ix?? */
|
|
424 | 424 |
avio_wl32(pb, avist->indexes.entry * 8 + 24); |
425 | 425 |
/* chunk size */ |
426 | 426 |
avio_wl16(pb, 2); /* wLongsPerEntry */ |
... | ... | |
428 | 428 |
avio_w8(pb, 1); /* bIndexType (1 == AVI_INDEX_OF_CHUNKS) */ |
429 | 429 |
avio_wl32(pb, avist->indexes.entry); |
430 | 430 |
/* nEntriesInUse */ |
431 |
ffio_wfourcc(pb, &tag[0]); /* dwChunkId */
|
|
431 |
ffio_wfourcc(pb, tag); /* dwChunkId */
|
|
432 | 432 |
avio_wl64(pb, avi->movi_list);/* qwBaseOffset */ |
433 | 433 |
avio_wl32(pb, 0); /* dwReserved_3 (must be 0) */ |
434 | 434 |
|
... | ... | |
491 | 491 |
} |
492 | 492 |
if (!empty) { |
493 | 493 |
avist= s->streams[stream_id]->priv_data; |
494 |
avi_stream2fourcc(&tag[0], stream_id,
|
|
494 |
avi_stream2fourcc(tag, stream_id,
|
|
495 | 495 |
s->streams[stream_id]->codec->codec_type); |
496 |
ffio_wfourcc(pb, &tag[0]);
|
|
496 |
ffio_wfourcc(pb, tag);
|
|
497 | 497 |
avio_wl32(pb, ie->flags); |
498 | 498 |
avio_wl32(pb, ie->pos); |
499 | 499 |
avio_wl32(pb, ie->len); |
... | ... | |
545 | 545 |
avi->movi_list = avi_start_new_riff(s, pb, "AVIX", "movi"); |
546 | 546 |
} |
547 | 547 |
|
548 |
avi_stream2fourcc(&tag[0], stream_index, enc->codec_type);
|
|
548 |
avi_stream2fourcc(tag, stream_index, enc->codec_type);
|
|
549 | 549 |
if(pkt->flags&AV_PKT_FLAG_KEY) |
550 | 550 |
flags = 0x10; |
551 | 551 |
if (enc->codec_type == AVMEDIA_TYPE_AUDIO) { |
Also available in: Unified diff