summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index a606f031f6..4d3742437a 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3372,7 +3372,7 @@ static void free_input_threads(void)
InputFile *f = input_files[i];
AVPacket pkt;
- if (f->joined)
+ if (!f->fifo || f->joined)
continue;
pthread_mutex_lock(&f->fifo_lock);