diff mbox series

[FFmpeg-devel,2/3] lavf/fifo: fix check on last_recovery_ts

Message ID 20240311161431.323249-2-stefasab@gmail.com
State New
Headers show
Series [FFmpeg-devel,1/3] lavf/fifo: sort options by name | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Stefano Sabatini March 11, 2024, 4:14 p.m. UTC
Correct check on PTS nullness.
---
 libavformat/fifo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavformat/fifo.c b/libavformat/fifo.c
index a3d41ba0d3..fcd80f217a 100644
--- a/libavformat/fifo.c
+++ b/libavformat/fifo.c
@@ -345,7 +345,7 @@  static int fifo_thread_attempt_recovery(FifoThreadContext *ctx, FifoMessage *msg
                                 AV_NOPTS_VALUE : 0;
     } else {
         if (fifo->recovery_wait_streamtime) {
-            if (ctx->last_recovery_ts == AV_NOPTS_VALUE) {
+            if (ctx->last_recovery_ts != AV_NOPTS_VALUE) {
                 AVRational tb = avf->streams[pkt->stream_index]->time_base;
                 time_since_recovery = av_rescale_q(pkt->pts - ctx->last_recovery_ts,
                                                    tb, AV_TIME_BASE_Q);