smvjpegdec: make sure cur_frame is not negative
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Thu, 10 Nov 2016 21:09:03 +0000 (22:09 +0100)
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Sat, 12 Nov 2016 00:36:47 +0000 (01:36 +0100)
commit360bc0d90aa66cf21e9f488e77d21db18e01ec9c
tree0f13a55f5d04df5efefdc88149114849e1d6dfce
parent005d058f4230f3207ebcf1131df7426d4f57392f
smvjpegdec: make sure cur_frame is not negative

This fixes a heap-buffer-overflow detected by AddressSanitizer.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
libavcodec/smvjpegdec.c