Mercurial > libavformat.hg
comparison mxfenc.c @ 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 |
comparison
equal
deleted
inserted
replaced
3837:cbcb37ccda1e | 3838:940130a27ee0 |
---|---|
855 static int mxf_write_footer(AVFormatContext *s) | 855 static int mxf_write_footer(AVFormatContext *s) |
856 { | 856 { |
857 ByteIOContext *pb = s->pb; | 857 ByteIOContext *pb = s->pb; |
858 int64_t byte_position= url_ftell(pb); | 858 int64_t byte_position= url_ftell(pb); |
859 | 859 |
860 if (!url_is_streamed(s->pb)) { | 860 mxf_write_partition(s, byte_position, 0, footer_partition_key); |
861 mxf_write_partition(s, byte_position, 0, footer_partition_key); | 861 put_flush_packet(pb); |
862 put_flush_packet(pb); | 862 if (!url_is_streamed(s->pb)) |
863 mxf_update_header_partition(s, byte_position); | 863 mxf_update_header_partition(s, byte_position); |
864 } | |
865 mxf_free(s); | 864 mxf_free(s); |
866 return 0; | 865 return 0; |
867 } | 866 } |
868 | 867 |
869 AVOutputFormat mxf_muxer = { | 868 AVOutputFormat mxf_muxer = { |