diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-04-24 17:47:49 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-04-24 17:47:49 +0200 |
commit | eeee59ba4d481ba71decae227e34f8d47df0d062 (patch) | |
tree | 541b75c36959332e8f60b12f481cd01ba0b355f1 | |
parent | 31f2357fd0e273365b1ae667e191638937e188e3 (diff) | |
download | ffmpeg-eeee59ba4d481ba71decae227e34f8d47df0d062.tar.gz |
Never write 0 as maximum bitrate for asf files.
WMP refuses to play such streams.
-rw-r--r-- | libavformat/asfenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c index 6ed4c0bf56..8add6e0b12 100644 --- a/libavformat/asfenc.c +++ b/libavformat/asfenc.c @@ -408,7 +408,7 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, avio_wl32(pb, (asf->is_streamed || !pb->seekable) ? 3 : 2); /* ??? */ avio_wl32(pb, s->packet_size); /* packet size */ avio_wl32(pb, s->packet_size); /* packet size */ - avio_wl32(pb, bit_rate); /* Nominal data rate in bps */ + avio_wl32(pb, bit_rate ? bit_rate : -1); /* Maximum data rate in bps */ end_header(pb, hpos); /* unknown headers */ |