Backport of "openjpegdec: allow multithread decoding only in subframe mode" into 1.22
Backport of !3948 (merged) "openjpegdec: allow multithread decoding only in subframe mode".
Commits:
- f3dfe7b1 openjpegdec: allow multithread decoding only in subframe mode