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>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
commit15d4dc0da1e9f2450b5f9e748e1704fc0e6ef3a4
tree9b62615e79d246229639e71e1f4282be891bee68
parentd79b274acc3a608358c0cd1ffe8ebd92bf108480
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