diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-10-12 20:55:42 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-10-12 20:55:42 +0000 |
commit | 5ed0d67da5b032f6e186b6513efeed181955b2ad (patch) | |
tree | 2a10d86730f74d7c4fdaca9ac7aa664e6b5be1d9 /libavcodec/snow.c | |
parent | 61b769871f049c30122153c3537e1fe0fcfa1208 (diff) | |
download | ffmpeg-5ed0d67da5b032f6e186b6513efeed181955b2ad.tar.gz |
-1 is a valid return value in ratecontrol_1pass() -> 100l for takis
Originally committed as revision 6677 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/snow.c')
-rw-r--r-- | libavcodec/snow.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/snow.c b/libavcodec/snow.c index 9eac3f09b1..9e31a1fc96 100644 --- a/libavcodec/snow.c +++ b/libavcodec/snow.c @@ -3876,7 +3876,7 @@ static int ratecontrol_1pass(SnowContext *s, AVFrame *pict) 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 @@ redo_frame: 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 |