Skip to content

Commit d6cb440

Browse files
Warpmestuarta
authored andcommitted
Fixes #12497 - fix for non-working content-size in flv streaming
Signed-off-by: Stuart Auchterlonie <stuarta@squashedfrog.net>
1 parent e2b4b14 commit d6cb440

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/stream/stream_flv.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
}
139139
# Guess the filesize based on duration and bitrate. This allows for progressive download behavior
140140
my $lengthSec;
141-
$dur = `ffmpeg -i $filename 2>&1 | grep "Duration" | cut -d ' ' -f 4 | sed s/,//`;
141+
$dur = `$ffmpeg -i $filename 2>&1 | grep "Duration" | cut -d ' ' -f 4 | sed s/,//`;
142142
if ($dur && $dur =~ /\d*:\d*:.*/) {
143143
@times = split(':',$dur);
144144
$lengthSec = $times[0]*3600+$times[1]*60+$times[2];

0 commit comments

Comments
 (0)