aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-13 18:36:19 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-13 18:36:50 +0200
commit81cf9108563510dee24f73b2c5d94a7bd07ff747 (patch)
tree937649b0fc1f86bf9a3cd9988f827c8556566530
parentcf9ab119d02dd8a80b37df02007d488aae5a2b80 (diff)
downloadffmpeg-81cf9108563510dee24f73b2c5d94a7bd07ff747.tar.gz
avcodec/mjpegdec: fix len computation in ff_mjpeg_decode_dqt()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/mjpegdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index b3dc246391..1ce332833d 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -189,7 +189,7 @@ int ff_mjpeg_decode_dqt(MJpegDecodeContext *s)
s->quant_matrixes[index][s->scantable.permutated[8]]) >> 1;
av_log(s->avctx, AV_LOG_DEBUG, "qscale[%d]: %d\n",
index, s->qscale[index]);
- len -= 65;
+ len -= 1 + 64 * (1+pr);
}
return 0;
}