store headers twice (getting closer to spec compliance ...)

Originally committed as revision 10035 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Michael Niedermayer 18 years ago
parent 7e506494b1
commit bd533e6cbc
  1. 12
      libavformat/nutenc.c

@ -497,6 +497,16 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt){
return 0; 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 = { AVOutputFormat nut_muxer = {
"nut", "nut",
"nut format", "nut format",
@ -513,7 +523,7 @@ AVOutputFormat nut_muxer = {
CODEC_ID_MPEG4, CODEC_ID_MPEG4,
write_header, write_header,
write_packet, write_packet,
// write_trailer, write_trailer,
.flags = AVFMT_GLOBALHEADER, .flags = AVFMT_GLOBALHEADER,
.codec_tag= (const AVCodecTag*[]){codec_bmp_tags, codec_wav_tags, 0}, .codec_tag= (const AVCodecTag*[]){codec_bmp_tags, codec_wav_tags, 0},
}; };

Loading…
Cancel
Save