diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-08-09 21:14:00 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-08-09 21:14:00 +0000 |
commit | bd533e6cbca5d34c2cc3bc1a9318440d837e2500 (patch) | |
tree | 139865a6e5c5951f243fae030498a1bae4fd3f07 /libavformat | |
parent | 7e506494b104966c4a45072b70f0574363a2f155 (diff) | |
download | ffmpeg-bd533e6cbca5d34c2cc3bc1a9318440d837e2500.tar.gz |
store headers twice (getting closer to spec compliance ...)
Originally committed as revision 10035 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/nutenc.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c index 510020ea1e..696548a4e1 100644 --- a/libavformat/nutenc.c +++ b/libavformat/nutenc.c @@ -497,6 +497,16 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt){ 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 @@ AVOutputFormat nut_muxer = { 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}, }; |