OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cf7e81
)
Make sure rtjpeg quality is a valid value
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 9 Sep 2007 09:16:47 +0000
(09:16 +0000)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Sun, 9 Sep 2007 09:16:47 +0000
(09:16 +0000)
Originally committed as revision 10444 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/nuv.c
patch
|
blob
|
history
diff --git
a/libavcodec/nuv.c
b/libavcodec/nuv.c
index
232cea3
..
9b74c44
100644
(file)
--- 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;