Skip to content

Commit

Permalink
source(audio): fix timestamp multiplication
Browse files Browse the repository at this point in the history
  • Loading branch information
Palakis committed Jul 28, 2020
1 parent a38e804 commit 9618871
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/obs-ndi-source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,12 @@ void* ndi_source_poll_audio_video(void* data)
switch (s->sync_mode) {
case PROP_SYNC_NDI_TIMESTAMP:
obs_audio_frame.timestamp =
(uint64_t)(audio_frame.timestamp * 100.0);
(uint64_t)(audio_frame.timestamp * 100);
break;

case PROP_SYNC_NDI_SOURCE_TIMECODE:
obs_audio_frame.timestamp =
(uint64_t)(audio_frame.timecode * 100.0);
(uint64_t)(audio_frame.timecode * 100);
break;
}

Expand Down

0 comments on commit 9618871

Please sign in to comment.