Decoder: Fix in checking for valid profile flags

Apart from Baseline, main and high profile, only extended profile
is supported provided, constraint_set0_flag or constraint_set1_flag are set to 1

Bug: 31999646

FPIIM-176: Remote code execution vulnerability in libstagefright CVE-2017-0409 A-31999646

Change-Id: I3b62069efc49e222a7126fba0805fa9124aac8f2
(cherry picked from commit d7eee555dc124a4ab7977f073c6b4a76c346f760)
(cherry picked from commit 1b05cf3e70a693e9e242dd9d153fd141f9833ff1)
2 files changed