Mercurial > libavcodec.hg
changeset 4011:5bce97c30a69 libavcodec
-1 is a valid return value in ratecontrol_1pass() -> 100l for takis
author | michael |
---|---|
date | Thu, 12 Oct 2006 20:55:42 +0000 |
parents | ed375c76b5e0 |
children | f8c649ac09dd |
files | snow.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/snow.c Thu Oct 12 19:57:47 2006 +0000 +++ b/snow.c Thu Oct 12 20:55:42 2006 +0000 @@ -3876,7 +3876,7 @@ pict->quality= ff_rate_estimate_qscale(&s->m, 1); if (pict->quality < 0) - return -1; + return INT_MIN; s->lambda= pict->quality * 3/2; delta_qlog= qscale2qlog(pict->quality) - s->qlog; s->qlog+= delta_qlog; @@ -4186,7 +4186,7 @@ if(s->pass1_rc && plane_index==0){ int delta_qlog = ratecontrol_1pass(s, pict); - if (delta_qlog < 0) + if (delta_qlog <= INT_MIN) return -1; if(delta_qlog){ //reordering qlog in the bitstream would eliminate this reset