diff --git a/libavformat/avienc.c b/libavformat/avienc.c
index 89e2a53..18871ec 100644
|
a
|
b
|
typedef struct {
|
| 64 | 64 | int64_t audio_strm_length; |
| 65 | 65 | int packet_count; |
| 66 | 66 | int entry; |
| | 67 | int max_size; |
| 67 | 68 | |
| 68 | 69 | AVIIndex indexes; |
| 69 | 70 | } AVIStream; |
| … |
… |
static int avi_write_packet(AVFormatContext *s, AVPacket *pkt)
|
| 628 | 629 | idx->cluster[cl][id].flags = flags; |
| 629 | 630 | idx->cluster[cl][id].pos = avio_tell(pb) - avi->movi_list; |
| 630 | 631 | idx->cluster[cl][id].len = size; |
| | 632 | avist->max_size = FFMAX(avist->max_size, size); |
| 631 | 633 | idx->entry++; |
| 632 | 634 | } |
| 633 | 635 | |
| … |
… |
static int avi_write_trailer(AVFormatContext *s)
|
| 689 | 691 | av_freep(&avist->indexes.cluster[j]); |
| 690 | 692 | av_freep(&avist->indexes.cluster); |
| 691 | 693 | avist->indexes.ents_allocated = avist->indexes.entry = 0; |
| | 694 | if (pb->seekable) { |
| | 695 | avio_seek(pb, avist->frames_hdr_strm + 4, SEEK_SET); |
| | 696 | avio_wl32(pb, avist->max_size); |
| | 697 | } |
| 692 | 698 | } |
| 693 | 699 | |
| 694 | 700 | return res; |