Commit 11ed6392 authored by michael's avatar michael

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10035 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a173e83d
......@@ -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},
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment