Skip to content

Commit

Permalink
Fix frame number calculation in SCC. Closes #1340
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos@ccextractor.org authored and carlos@ccextractor.org committed Jun 8, 2021
1 parent 6d366bf commit d81c692
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/CHANGES.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
- Fix: Segmentation fault with unsupported and multitrack file reports
- Fix: Write subtitle header to multitrack outputs
- Fix: Write multitrack files to the output file directory
- Fix: Correct frame number calculation in SCC (#1340)

0.88 (2019-05-21)
-----------------
Expand Down
2 changes: 1 addition & 1 deletion src/lib_ccx/ccx_encoders_scc.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ void add_timestamp(const struct encoder_ctx *context, LLONG time, const bool dis
millis_to_time(time, &hour, &minute, &second, &milli);

// SMPTE format
float frame = milli / 29.97;
float frame = milli * 29.97 / 1000;
fdprintf(context->out->fh, "%02u:%02u:%02u:%02.f\t", hour, minute, second, frame);
}

Expand Down

0 comments on commit d81c692

Please sign in to comment.