Commit 7b79b1fd authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Cue: don't round the start values

Close #11740

(cherry picked from commit 84bdd0e765a83978fd246277d4b290ced72086b7)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 70c4f05f
...@@ -75,7 +75,7 @@ function cue_track( global, track ) ...@@ -75,7 +75,7 @@ function cue_track( global, track )
t.date = track.date or global.date t.date = track.date or global.date
t.description = global.comment t.description = global.comment
t.tracknum = track.num t.tracknum = track.num
t.options = { ":start-time=" .. math.floor(track.index01) } t.options = { ":start-time=" .. track.index01}
return t return t
end end
...@@ -85,7 +85,7 @@ function cue_append( tracks, global, track ) ...@@ -85,7 +85,7 @@ function cue_append( tracks, global, track )
if( t ~= nil ) then if( t ~= nil ) then
if( #tracks > 0 ) then if( #tracks > 0 ) then
local prev = tracks[#tracks] local prev = tracks[#tracks]
table.insert( prev.options, ":stop-time=" .. math.floor(track.index01) ) table.insert( prev.options, ":stop-time=" .. track.index01)
end end
table.insert( tracks, t ) table.insert( tracks, t )
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment