avcodec/mjpegdec: Check for end for both bytes in unescaping
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 21 Jan 2016 20:01:47 +0000 (21:01 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 21 Jan 2016 22:47:29 +0000 (23:47 +0100)
commit509c9e74e548139285f30ed8dcc9baf1d64359fa
treef17e979c0570515493abb114614135bb2e7f5e64
parentd39c229e54d6a5a7d9bb89e9fe5b086a95c9cca9
avcodec/mjpegdec: Check for end for both bytes in unescaping

Fixes assertion failure
Fixes: c40c779601b77dc6e19aaea0b04b9751/signal_sigabrt_7ffff6ae7cb7_5769_b94f6ec70caecb2d3d76b4771b109ac1.avi

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mjpegdec.c