Ticket #12497: 0027-mythweb-flv-streaming-fix-typo-for-size-calculation.patch

File 0027-mythweb-flv-streaming-fix-typo-for-size-calculation.patch, 893 bytes (added by warpme@…, 10 years ago)

patch fixing content-size

  • mythplugins/mythweb/modules/stream/stream_flv.pl

    diff -Naur mythtv-master-build-old/mythplugins/mythweb/modules/stream/stream_flv.pl mythtv-master-build-new/mythplugins/mythweb/modules/stream/stream_flv.pl
    old new  
    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 | /usr/bin/grep "Duration" | /usr/bin/cut -d ' ' -f 4 | /bin/sed s/,//`;
     141    $dur = `$ffmpeg -i $filename 2>&1 | /usr/bin/grep "Duration" | /usr/bin/cut -d ' ' -f 4 | /bin/sed s/,//`;
    142142    if ($dur && $dur =~ /\d*:\d*:.*/) {
    143143        @times = split(':',$dur);
    144144        $lengthSec = $times[0]*3600+$times[1]*60+$times[2];