Commit 55524d1e authored by reimar's avatar reimar

Make sure rtjpeg quality is a valid value


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10444 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f9315aa7
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment