all asf files i have have this field at 2 so lets try to change it to that ...
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 5 Mar 2007 01:42:35 +0000 (01:42 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 5 Mar 2007 01:42:35 +0000 (01:42 +0000)
Originally committed as revision 8238 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/asf-enc.c
tests/libav.regression.ref

index da3bc73726fc670e7fb0f72474606bf775d6b810..b4bbc45a01d3b312cbab483f2f38468c66d2581f 100644 (file)
@@ -311,7 +311,7 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, int64_t data
     put_le64(pb, duration); /* end time stamp (in 100ns units) */
     put_le64(pb, duration); /* duration (in 100ns units) */
     put_le64(pb, preroll_time); /* start time stamp */
-    put_le32(pb, asf->is_streamed ? 1 : 0); /* ??? */
+    put_le32(pb, asf->is_streamed ? 3 : 2); /* ??? */
     put_le32(pb, asf->packet_size); /* packet size */
     put_le32(pb, asf->packet_size); /* packet size */
     put_le32(pb, bit_rate); /* Nominal data rate in bps */
index e7932488d2e848f995c3639bf72cbca6e9f87642..03f13ba734768512b4bc6dd27be2cf9b9e063d91 100644 (file)
@@ -2,7 +2,7 @@ ffmpeg regression test
 8a0536ccfe36f4fff408b3327d33e1dd *./data/b-libav.avi
 340344 ./data/b-libav.avi
 ./data/b-libav.avi CRC=0x400c29e9
-fc0716844f196fc791722b4c830a1155 *./data/b-libav.asf
+aa0016b3bc33b8ba3124f05bdf6753f7 *./data/b-libav.asf
 339775 ./data/b-libav.asf
 ./data/b-libav.asf CRC=0x74113749
 1ad618e9fd318eb3483270cf9b9b3f43 *./data/b-libav.rm