0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

libobs: Fix audio offset not reset for all tracks

Track 1 offset is reset but not the offset for other tracks.
This caused sync issues in between tracks (with track 1 and others).
(bug found by EposVox)
This commit is contained in:
pkviet 2018-11-16 02:23:38 +01:00
parent 047e586eaf
commit 9b252b1268

View File

@ -1556,7 +1556,7 @@ static void reset_packet_data(obs_output_t *output)
output->video_offset = 0;
for (size_t i = 0; i < MAX_AUDIO_MIXES; i++)
output->audio_offsets[0] = 0;
output->audio_offsets[i] = 0;
free_packets(output);
}