[FFmpeg-cvslog] r10755 - trunk/libavformat/asf-enc.c

cehoyos subversion
Tue Oct 16 01:55:14 CEST 2007


Author: cehoyos
Date: Tue Oct 16 01:55:14 2007
New Revision: 10755

Log:
Fix streaming to XBox360.

Patch by Patric Stout, patric T liefdeis O com
Original thread:
Subject: asf-format doesn't work as stream for XBox360
Date: 2007-10-14


Modified:
   trunk/libavformat/asf-enc.c

Modified: trunk/libavformat/asf-enc.c
==============================================================================
--- trunk/libavformat/asf-enc.c	(original)
+++ trunk/libavformat/asf-enc.c	Tue Oct 16 01:55:14 2007
@@ -498,7 +498,10 @@ static int asf_write_header(AVFormatCont
     asf->nb_index_count = 0;
     asf->maximum_packet = 0;
 
-    if (asf_write_header1(s, 0, 0) < 0) {
+    /* the data-chunk-size has to be 50, which is data_size - asf->data_offset
+     *  at the moment this function is done. It is needed to use asf as
+     *  streamable format. */
+    if (asf_write_header1(s, 0, 50) < 0) {
         //av_free(asf);
         return -1;
     }




More information about the ffmpeg-cvslog mailing list