avcodec/dirac_parser: Check that there is a previous PU before accessing it
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 5 Dec 2015 16:15:38 +0000 (17:15 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 5 Dec 2015 16:42:45 +0000 (17:42 +0100)
commita08681f1e614152184615e2bcd71c3d63835f810
treef8fc0565054923204664b4dcc980fa4aae181592
parentc7d6ec947c053699950af90f695413a5640b3872
avcodec/dirac_parser: Check that there is a previous PU before accessing it

Fixes out of array read
Fixes: 99d142c47e6ba3510a74b872a1a2ae72/asan_heap-oob_11b36f4_3811_0f5c69e7609a88a580135678de1df844.dxa

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