# HG changeset patch # User reimar # Date 1189329407 0 # Node ID ec46684cc8ad99b1ae4de199fcd5fd1bd99205f2 # Parent 3f7d66453c2e9c23958fcb18754fc2a6be6f9e0f Make sure rtjpeg quality is a valid value diff -r 3f7d66453c2e -r ec46684cc8ad nuv.c --- a/nuv.c Sun Sep 09 09:00:12 2007 +0000 +++ b/nuv.c Sun Sep 09 09:16:47 2007 +0000 @@ -97,6 +97,7 @@ */ 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;