avcodec/utvideodec: Set pro flag based on fourcc
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 31 Mar 2018 01:10:43 +0000 (03:10 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 17 Jun 2018 23:16:03 +0000 (01:16 +0200)
commit51035698bde9c13da7eedc1f6eb47d190bbc949d
tree9ffb387c9e44da18533533384f5f2f9c8ad1a96c
parentfdf56c5654c81c138947666a3879c4e10124ca30
avcodec/utvideodec: Set pro flag based on fourcc

This avoids mixing 8bit variants with pro and 10bit with non pro mode.
Fixes: out of array read
Fixes: poc_03_30.avi

Found-by: GwanYeong Kim <gy741.kim@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 47b7c68ae54560e2308bdb6be4fb076c73b93081)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/utvideodec.c