diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2007-09-09 09:16:47 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2007-09-09 09:16:47 +0000 |
commit | fd065d0593747eb38112bf02e02b23cd5eb6cba2 (patch) | |
tree | 03afc784d985d23a29405f775ac91df48177396f | |
parent | 6cf7e81f8cce20f1b39ab5a1485682b698db7e60 (diff) | |
download | ffmpeg-fd065d0593747eb38112bf02e02b23cd5eb6cba2.tar.gz |
Make sure rtjpeg quality is a valid value
Originally committed as revision 10444 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/nuv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/nuv.c b/libavcodec/nuv.c index 232cea3fc9..9b74c44158 100644 --- a/libavcodec/nuv.c +++ b/libavcodec/nuv.c @@ -97,6 +97,7 @@ static int get_quant(AVCodecContext *avctx, NuvContext *c, */ static void get_quant_quality(NuvContext *c, int quality) { int i; + quality = FFMAX(quality, 1); for (i = 0; i < 64; i++) { c->lq[i] = (fallback_lquant[i] << 7) / quality; c->cq[i] = (fallback_cquant[i] << 7) / quality; |