From 006718c4755cdb3e8543761b0e64f2489ac6bd1a Mon Sep 17 00:00:00 2001 From: Peter Ross Date: Thu, 7 Nov 2024 15:21:55 +1100 Subject: [PATCH] avcodec/rv60: align calc_sel_qp with reference decoder Fixes ticket #11290. --- libavcodec/rv60dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/rv60dec.c b/libavcodec/rv60dec.c index 0ce346fefb..96f121197a 100644 --- a/libavcodec/rv60dec.c +++ b/libavcodec/rv60dec.c @@ -2237,7 +2237,7 @@ static int calc_sel_qp(int osvquant, int qp) { switch (osvquant) { case 0: return qp; - case 1: return qp < 25 ? qp + 5 : qp; + case 1: return qp <= 25 ? qp + 5 : qp; default: if (qp <= 18) return qp + 10;