diff options
author | ZakFlash <zakflashvideo@gmail.com> | 2012-06-30 20:49:19 +0100 |
---|---|---|
committer | ZakFlash <zakflashvideo@gmail.com> | 2012-06-30 20:49:19 +0100 |
commit | 92b2d497695db41ef76246f0f7c53d19afe0ffe1 (patch) | |
tree | 1f49885b6def4e488b30c5b9b266965bfde59beb | |
parent | e8178a2b9aaa6065a33486ebf39d6891b31db4cc (diff) | |
download | get-flash-videos-92b2d497695db41ef76246f0f7c53d19afe0ffe1.tar.gz |
Fixed SAMI to SRT subtitle conversion
(Originally reported in Google Code issue 399.)
-rw-r--r-- | lib/FlashVideo/Utils.pm | 2 |
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 ); |