Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes #9207, this fixes the bitrate calculation (1024, not 1000), and…

… adds in a bit of overhead to allow the stream to fully complete with format overhead.
  • Loading branch information...
commit ff42fd99ea76bd6b752321f5be86146f57d649dc 1 parent 6aba7cf
Rob Smith kormoc authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  modules/stream/stream_flv.pl
2  modules/stream/stream_flv.pl
View
@@ -99,7 +99,7 @@
if ($dur && $dur =~ /\d*:\d*:.*/) {
@times = split(':',$dur);
$lengthSec = $times[0]*3600+$times[1]*60+$times[2];
- $size = int($lengthSec*($vbitrate*1000+$abitrate*1000)/8);
+ $size = 1.05*int($lengthSec*($vbitrate*1024+$abitrate*1024)/8);
print header(-type => 'video/x-flv','Content-Length' => $size);
} else {
print header(-type => 'video/x-flv');
Please sign in to comment.
Something went wrong with that request. Please try again.