[FFmpeg-devel] [PATCH 2/3] lavf/fifo: fix check on last_recovery_ts
Stefano Sabatini
stefasab at gmail.com
Mon Mar 11 18:14:42 EET 2024
Correct check on PTS nullness.
---
libavformat/fifo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
2.34.1
More information about the ffmpeg-devel
mailing list