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, 28 Jan 2016 14:53:54 +0000 (15:53 +0100)
commit98199983420ba004a2b4e6fcdbcf3f15b9aa9a0c
tree585b714ddf24334f86d8466b1dd53ee08719a8fe
parent85cfcb87ff9be51acb2abbe1fe73e190d5b55f23
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