Skip to content

Commit

Permalink
[coreSubtitles] Fix SSA timestamps generation
Browse files Browse the repository at this point in the history
  • Loading branch information
eumagga0x2a committed Jan 8, 2019
1 parent 61d8b51 commit 3b9fd40
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions avidemux_core/ADM_coreSubtitles/src/ADM_subConvert.cpp
Expand Up @@ -26,11 +26,13 @@ static char buffer[256];
uint32_t ms=(uint32_t)(ams/1000); uint32_t ms=(uint32_t)(ams/1000);
uint32_t hh,mm,ss,mms; uint32_t hh,mm,ss,mms;
if(ams==ADM_NO_PTS) if(ams==ADM_NO_PTS)
sprintf(buffer,"xx:xx:xx.xxx"); sprintf(buffer,"xx:xx:xx.xx");
else else
{ {
ms+=5;
ms2time(ms,&hh,&mm,&ss,&mms); 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; return buffer;


Expand Down

0 comments on commit 3b9fd40

Please sign in to comment.