[FFmpeg-cvslog] r10035 - trunk/libavformat/nutenc.c

michael subversion
Thu Aug 9 23:14:01 CEST 2007


Author: michael
Date: Thu Aug  9 23:14:00 2007
New Revision: 10035

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


Modified:
   trunk/libavformat/nutenc.c

Modified: trunk/libavformat/nutenc.c
==============================================================================
--- trunk/libavformat/nutenc.c	(original)
+++ trunk/libavformat/nutenc.c	Thu Aug  9 23:14:00 2007
@@ -497,6 +497,16 @@ static int write_packet(AVFormatContext 
     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},
 };




More information about the ffmpeg-cvslog mailing list