[FFmpeg-cvslog] avcodec/rv60: align calc_sel_qp with reference decoder
Peter Ross
git at videolan.org
Sat Nov 9 00:47:21 EET 2024
ffmpeg | branch: master | Peter Ross <pross at xvid.org> | Thu Nov 7 15:21:55 2024 +1100| [006718c4755cdb3e8543761b0e64f2489ac6bd1a] | committer: Peter Ross
avcodec/rv60: align calc_sel_qp with reference decoder
Fixes ticket #11290.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=006718c4755cdb3e8543761b0e64f2489ac6bd1a
---
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;
More information about the ffmpeg-cvslog
mailing list