[FFmpeg-devel] [PATCH] avcodec/rv60: align calc_sel_qp with reference decoder
Peter Ross
pross at xvid.org
Thu Nov 7 06:26:33 EET 2024
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;
--
2.45.2
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20241107/c6a270bc/attachment.sig>
More information about the ffmpeg-devel
mailing list