aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZakFlash <zakflashvideo@gmail.com>2012-06-30 20:49:19 +0100
committerZakFlash <zakflashvideo@gmail.com>2012-06-30 20:49:19 +0100
commit92b2d497695db41ef76246f0f7c53d19afe0ffe1 (patch)
tree1f49885b6def4e488b30c5b9b266965bfde59beb
parente8178a2b9aaa6065a33486ebf39d6891b31db4cc (diff)
downloadget-flash-videos-92b2d497695db41ef76246f0f7c53d19afe0ffe1.tar.gz
Fixed SAMI to SRT subtitle conversion
(Originally reported in Google Code issue 399.)
-rw-r--r--lib/FlashVideo/Utils.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/FlashVideo/Utils.pm b/lib/FlashVideo/Utils.pm
index 81af8df..61dfd18 100644
--- a/lib/FlashVideo/Utils.pm
+++ b/lib/FlashVideo/Utils.pm
@@ -342,7 +342,7 @@ sub convert_sami_subtitles_to_srt {
decode_entities($sub); # in void context, this works in place
- if ($sub and ($begin or $begin == 0)) {
+ if ($begin >= 0) {
# Convert milliseconds into HH:MM:ss,mmm format
my $seconds = int( $begin / 1000.0 );
my $ms = $begin - ( $seconds * 1000.0 );