[FFmpeg-cvslog] r10444 - trunk/libavcodec/nuv.c
reimar
subversion
Sun Sep 9 11:16:47 CEST 2007
Author: reimar
Date: Sun Sep 9 11:16:47 2007
New Revision: 10444
Log:
Make sure rtjpeg quality is a valid value
Modified:
trunk/libavcodec/nuv.c
Modified: trunk/libavcodec/nuv.c
==============================================================================
--- trunk/libavcodec/nuv.c (original)
+++ trunk/libavcodec/nuv.c Sun Sep 9 11:16:47 2007
@@ -97,6 +97,7 @@ static int get_quant(AVCodecContext *avc
*/
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;
More information about the ffmpeg-cvslog
mailing list