summaryrefslogtreecommitdiff
path: root/libavcodec/mjpegbdec.c
diff options
context:
space:
mode:
authorVladimir Voroshilov <voroshil@gmail.com>2008-04-19 17:07:58 +0000
committerVladimir Voroshilov <voroshil@gmail.com>2008-04-19 17:07:58 +0000
commit159ef4b02a231259da95af3e7384c216f3252abd (patch)
treec353288c9ac9108377c2ce68b0094b9907ed8f52 /libavcodec/mjpegbdec.c
parentc6cd525aa0b88a593ccb8c492f9a6a0a5c8abc86 (diff)
Implement FFMAX3(a,b,c) - maximum over three arguments.
Originally committed as revision 12910 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mjpegbdec.c')
-rw-r--r--libavcodec/mjpegbdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mjpegbdec.c b/libavcodec/mjpegbdec.c
index 0f27379f30..a6c409a902 100644
--- a/libavcodec/mjpegbdec.c
+++ b/libavcodec/mjpegbdec.c
@@ -123,7 +123,7 @@ read_header:
*data_size = sizeof(AVFrame);
if(!s->lossless){
- picture->quality= FFMAX(FFMAX(s->qscale[0], s->qscale[1]), s->qscale[2]);
+ picture->quality= FFMAX3(s->qscale[0], s->qscale[1], s->qscale[2]);
picture->qstride= 0;
picture->qscale_table= s->qscale_table;
memset(picture->qscale_table, picture->quality, (s->width+15)/16);