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>
Sun, 6 Dec 2015 11:40:51 +0000 (12:40 +0100)
commit9459490c2ae927e341354c311639f016d01731a0
tree97e4b59f4c836b1463f780d2bac0479750bf4049
parente5a2128ead24ccafaee1e0bcbe02257f1e123629
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>
(cherry picked from commit a08681f1e614152184615e2bcd71c3d63835f810)

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