summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libavcodec/mjpegdec.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index 84d929a..742e07c 100644
--- a/libavcodec/mjpegdec.c
+++ b/libavcodec/mjpegdec.c
@@ -1692,14 +1692,14 @@ static int mjpeg_decode_app(MJpegDecodeContext *s)
len -= 8;
if (len >= 2) {
- t_w = get_bits(&s->gb, 8);
- t_h = get_bits(&s->gb, 8);
- if (t_w && t_h) {
- /* skip thumbnail */
- if (len -10 - (t_w * t_h * 3) > 0)
- len -= t_w * t_h * 3;
- }
- len -= 2;
+ t_w = get_bits(&s->gb, 8);
+ t_h = get_bits(&s->gb, 8);
+ if (t_w && t_h) {
+ /* skip thumbnail */
+ if (len -10 - (t_w * t_h * 3) > 0)
+ len -= t_w * t_h * 3;
+ }
+ len -= 2;
}
goto out;
}
OpenPOWER on IntegriCloud