Skip to content

Commit bd05cf8

Browse files
committed
kate: use CLOCK_FREQ
1 parent a7cf4c5 commit bd05cf8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/codec/kate.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,8 @@ static subpicture_t *DecodePacket( decoder_t *p_dec, kate_packet *p_kp, block_t
11701170
}
11711171

11721172
p_spu->i_start = p_block->i_pts;
1173-
p_spu->i_stop = p_block->i_pts + INT64_C(1000000)*ev->duration*p_sys->ki.gps_denominator/p_sys->ki.gps_numerator;
1173+
p_spu->i_stop = p_block->i_pts + CLOCK_FREQ *
1174+
ev->duration * p_sys->ki.gps_denominator / p_sys->ki.gps_numerator;
11741175
p_spu->b_ephemer = false;
11751176
p_spu->b_absolute = false;
11761177

0 commit comments

Comments
 (0)