--- mythplugins/mythweb/modules/stream/stream_raw.pl	2009-01-28 12:29:51.000000000 -0500
+++ mythplugins/mythweb/modules/stream/stream_raw.pl	2009-01-28 12:29:22.000000000 -0500
@@ -57,16 +57,17 @@
 
 # Requested a range?
     my $start      = 0;
-    my $end        = $size;
+    my $end        = $size - 1;
     my $total_size = $size;
     if ($ENV{'HTTP_RANGE'}) {
     # Figure out the size of the requested chunk
         ($start, $end) = $ENV{'HTTP_RANGE'} =~ /bytes\W+(\d*)-(\d*)\W*$/;
         $start ||= 0;
-        if ($end < 1 || $end > $size) {
-            $end = $size;
+        $end ||= 0;
+        if ($end < 1 || $end >= $size) {
+            $end = $size - 1;
         }
-        $size = $end - $start;
+        $size = $end - $start + 1;
     }
 
 # Print the header
