changeset 2054:06d6a6bade18 libavcodec

qscale + qprd fix
author michael
date Sat, 05 Jun 2004 18:10:23 +0000
parents c46e203dd698
children 1c019179525c
files mpegvideo.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo.c	Thu Jun 03 19:29:47 2004 +0000
+++ b/mpegvideo.c	Sat Jun 05 18:10:23 2004 +0000
@@ -3497,7 +3497,8 @@
             }
         }
         ff_set_qscale(s, last_qp + s->dquant);
-    }
+    }else if(s->flags&CODEC_FLAG_QP_RD)
+        ff_set_qscale(s, s->qscale + s->dquant);
 
     wrap_y = s->linesize;
     wrap_c = s->uvlinesize;