Skip to content
Permalink
Browse files

[coreSubtitles] Fix SSA timestamps generation

  • Loading branch information...
eumagga0x2a committed Jan 8, 2019
1 parent 61d8b51 commit 3b9fd40444f045284017163df27b489a526300d8
Showing with 4 additions and 2 deletions.
  1. +4 −2 avidemux_core/ADM_coreSubtitles/src/ADM_subConvert.cpp
@@ -26,11 +26,13 @@ static char buffer[256];
uint32_t ms=(uint32_t)(ams/1000);
uint32_t hh,mm,ss,mms;
if(ams==ADM_NO_PTS)
sprintf(buffer,"xx:xx:xx.xxx");
sprintf(buffer,"xx:xx:xx.xx");
else
{
ms+=5;
ms2time(ms,&hh,&mm,&ss,&mms);
sprintf(buffer,"%01" PRIu32":%02" PRIu32":%02" PRIu32".%03" PRIu32,hh,mm,ss,mms);
mms/=10;
sprintf(buffer,"%01" PRIu32":%02" PRIu32":%02" PRIu32".%02" PRIu32,hh,mm,ss,mms);
}
return buffer;

0 comments on commit 3b9fd40

Please sign in to comment.
You can’t perform that action at this time.