Attempt to fix audio in replay mode in screen-direct

This commit is contained in:
dec05eba 2022-03-24 19:11:23 +01:00
parent e7de2006e6
commit 5415f56140

View File

@ -1358,8 +1358,10 @@ int main(int argc, char **argv) {
AVPacket *av_packet = frame_data_queue[i]; AVPacket *av_packet = frame_data_queue[i];
if(av_packet->stream_index != video_stream->index) { if(av_packet->stream_index != video_stream->index) {
if(!direct_capture_sound_hack) {
av_packet->pts = AV_NOPTS_VALUE; av_packet->pts = AV_NOPTS_VALUE;
av_packet->dts = AV_NOPTS_VALUE; av_packet->dts = AV_NOPTS_VALUE;
}
} else { } else {
av_packet->pts -= pts_offset; av_packet->pts -= pts_offset;
//av_packet->pos -= pos; //av_packet->pos -= pos;