changeset 2615:cda2c3b0a4e6 libavformat

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
author cehoyos
date Mon, 15 Oct 2007 23:55:14 +0000
parents 46d233a8d62b
children ccb37555090a
files asf-enc.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/asf-enc.c	Mon Oct 15 22:52:22 2007 +0000
+++ b/asf-enc.c	Mon Oct 15 23:55:14 2007 +0000
@@ -498,7 +498,10 @@
     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;
     }