aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-03-24 19:04:48 +0100
committerdec05eba <dec05eba@protonmail.com>2022-03-24 19:04:48 +0100
commite7de2006e630c81a21ac54d868b90a10a8d65bf2 (patch)
treec852929235e618950d1dccde3855d81a787307ab /src/main.cpp
parentd231d93891e823a52dd6b2231792bbc0ad3853fd (diff)
Fix replay if no audio stream
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 35b6233..f87d90c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1357,7 +1357,7 @@ int main(int argc, char **argv) {
for(size_t i = start_index; i < frame_data_queue.size(); ++i) {
AVPacket *av_packet = frame_data_queue[i];
- if(av_packet->stream_index == audio_stream->index) {
+ if(av_packet->stream_index != video_stream->index) {
av_packet->pts = AV_NOPTS_VALUE;
av_packet->dts = AV_NOPTS_VALUE;
} else {