Message ID | 20201207100845.17520-4-jeebjp@gmail.com |
---|---|
State | New |
Headers | show |
Series | FIFO meta muxer related improvements | expand |
Context | Check | Description |
---|---|---|
andriy/x86_make | success | Make finished |
andriy/x86_make_fate | success | Make fate finished |
diff --git a/libavformat/fifo.c b/libavformat/fifo.c index b940d0dafe1..9fc524adbdf 100644 --- a/libavformat/fifo.c +++ b/libavformat/fifo.c @@ -338,7 +338,8 @@ static int fifo_thread_attempt_recovery(FifoThreadContext *ctx, FifoMessage *msg } if (fifo->recovery_wait_streamtime) { - if (ctx->last_recovery_ts == AV_NOPTS_VALUE) { + if (ctx->last_recovery_ts == AV_NOPTS_VALUE || + pkt->pts < ctx->last_recovery_ts) { /* Enforce recovery immediately */ time_since_recovery = fifo->recovery_wait_time; } else {