Commit eeee59ba authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Never write 0 as maximum bitrate for asf files.

WMP refuses to play such streams.
parent 31f2357f
...@@ -408,7 +408,7 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, ...@@ -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, (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, 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); end_header(pb, hpos);
/* unknown headers */ /* unknown headers */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment