ffmpeg | branch: master | Peter Ross <pr...@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;

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to