mirror of https://git.ffmpeg.org/ffmpeg.git
lavc/cavsdec: Add profile check
Add profile check for cavs decoder, now cavs decoder only support JiZhun(0x20) profile Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
This commit is contained in:
parent
072a0daf5d
commit
68a7df5e9d
|
@ -1177,6 +1177,11 @@ static int decode_seq_header(AVSContext *h)
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
h->profile = get_bits(&h->gb, 8);
|
h->profile = get_bits(&h->gb, 8);
|
||||||
|
if (h->profile != 0x20) {
|
||||||
|
avpriv_report_missing_feature(h->avctx,
|
||||||
|
"only supprt JiZhun profile");
|
||||||
|
return AVERROR_PATCHWELCOME;
|
||||||
|
}
|
||||||
h->level = get_bits(&h->gb, 8);
|
h->level = get_bits(&h->gb, 8);
|
||||||
skip_bits1(&h->gb); //progressive sequence
|
skip_bits1(&h->gb); //progressive sequence
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue