diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-03-24 19:11:23 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-03-24 19:11:23 +0100 |
commit | 5415f56140fc5a77e72973bb7f0c10d059a93959 (patch) | |
tree | 87fa4ef64207580e4d7c256232b07cd3c166e171 /src/main.cpp | |
parent | e7de2006e630c81a21ac54d868b90a10a8d65bf2 (diff) |
Attempt to fix audio in replay mode in screen-direct
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index f87d90c..b6db8aa 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1358,8 +1358,10 @@ int main(int argc, char **argv) { AVPacket *av_packet = frame_data_queue[i]; if(av_packet->stream_index != video_stream->index) { - av_packet->pts = AV_NOPTS_VALUE; - av_packet->dts = AV_NOPTS_VALUE; + if(!direct_capture_sound_hack) { + av_packet->pts = AV_NOPTS_VALUE; + av_packet->dts = AV_NOPTS_VALUE; + } } else { av_packet->pts -= pts_offset; //av_packet->pos -= pos; |