diff options
author | Patric Stout <patric@liefdeis.com> | 2007-10-15 23:55:14 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2007-10-15 23:55:14 +0000 |
commit | ed7b48b205558b17daf3b66d28b3ccdc8a0a1e1f (patch) | |
tree | 66cf3194e81acecfb49e6ea2ac00a9a440bff9b5 /libavformat/asf-enc.c | |
parent | 8a2d973dfc92011b8e9e09e471faa8b14882e1e5 (diff) | |
download | ffmpeg-ed7b48b205558b17daf3b66d28b3ccdc8a0a1e1f.tar.gz |
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
Originally committed as revision 10755 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/asf-enc.c')
-rw-r--r-- | libavformat/asf-enc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/asf-enc.c b/libavformat/asf-enc.c index f1d9c69034..736c1365af 100644 --- a/libavformat/asf-enc.c +++ b/libavformat/asf-enc.c @@ -498,7 +498,10 @@ static int asf_write_header(AVFormatContext *s) 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; } |