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>
Sat, 30 Jan 2016 23:23:46 +0000 (00:23 +0100)
commit965a8bda9422eb9fcb2940c0c9776c5af3f95d0f
tree0f3cb44793a75c50e972be775b8c93778f2b9ad4
parente229fbf5ce8400fde181758171c6ac911432ddfd
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>
(cherry picked from commit 509c9e74e548139285f30ed8dcc9baf1d64359fa)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mjpegdec.c