Mercurial > libavformat.hg
changeset 2346:cbcd840cf971 libavformat
store headers twice (getting closer to spec compliance ...)
author | michael |
---|---|
date | Thu, 09 Aug 2007 21:14:00 +0000 |
parents | b73b443c43d0 |
children | 5c32dd0eafc6 |
files | nutenc.c |
diffstat | 1 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/nutenc.c Thu Aug 09 21:10:11 2007 +0000 +++ b/nutenc.c Thu Aug 09 21:14:00 2007 +0000 @@ -497,6 +497,16 @@ return 0; } +static int write_trailer(AVFormatContext *s){ + NUTContext *nut= s->priv_data; + ByteIOContext *bc= &s->pb; + + write_headers(nut, bc); + put_flush_packet(bc); + + return 0; +} + AVOutputFormat nut_muxer = { "nut", "nut format", @@ -513,7 +523,7 @@ CODEC_ID_MPEG4, write_header, write_packet, -// write_trailer, + write_trailer, .flags = AVFMT_GLOBALHEADER, .codec_tag= (const AVCodecTag*[]){codec_bmp_tags, codec_wav_tags, 0}, };