Mercurial > libavformat.hg
changeset 3838:940130a27ee0 libavformat
always write footer partition according to specs
author | bcoudurier |
---|---|
date | Sun, 31 Aug 2008 03:01:07 +0000 |
parents | cbcb37ccda1e |
children | 2b1b25134815 |
files | mxfenc.c |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mxfenc.c Sun Aug 31 02:55:13 2008 +0000 +++ b/mxfenc.c Sun Aug 31 03:01:07 2008 +0000 @@ -857,11 +857,10 @@ ByteIOContext *pb = s->pb; int64_t byte_position= url_ftell(pb); - if (!url_is_streamed(s->pb)) { - mxf_write_partition(s, byte_position, 0, footer_partition_key); - put_flush_packet(pb); + mxf_write_partition(s, byte_position, 0, footer_partition_key); + put_flush_packet(pb); + if (!url_is_streamed(s->pb)) mxf_update_header_partition(s, byte_position); - } mxf_free(s); return 0; }