Skip to content

Commit

Permalink
Fix timecode range in matroska output
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime Gervais <[email protected]>
  • Loading branch information
g-maxime committed Jun 17, 2024
1 parent 69762aa commit 1bb0c7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Common/Output_Mkv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,9 +415,9 @@ void matroska_writer::write_frame(const char* video_buffer, int video_size, cons
char text_buffer[11] = { '0', '0', ':', '0', '0', ':', '0', '0', ':', '0', '0' };
text_buffer[ 0] += (timecode.Hours / 10) & 3;
text_buffer[ 1] += timecode.Hours % 10;
text_buffer[ 3] += (timecode.Minutes / 10) & 3;
text_buffer[ 3] += (timecode.Minutes / 10) & 5;
text_buffer[ 4] += timecode.Minutes % 10;
text_buffer[ 6] += (timecode.Seconds / 10) & 3;
text_buffer[ 6] += (timecode.Seconds / 10) & 5;
text_buffer[ 7] += timecode.Seconds % 10;
if (timecode.DropFrame)
text_buffer[ 8] = ';';
Expand Down

0 comments on commit 1bb0c7f

Please sign in to comment.