mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avcodec/proresenc_anatoliy: Assert that AV_PROFILE_UNKNOWN is replaced
If its not replaced we would have a negative index used in an array potentially Helps: CID1440385 Negative array index read Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 6106177ad66ab28f44520534f386239d2405eeab) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
d2295ca945
commit
063c906f1f
@ -856,7 +856,8 @@ static av_cold int prores_encode_init(AVCodecContext *avctx)
|
||||
avctx->profile = AV_PROFILE_PRORES_4444;
|
||||
av_log(avctx, AV_LOG_INFO,
|
||||
"encoding with ProRes 4444+ (ap4h) profile\n");
|
||||
}
|
||||
} else
|
||||
av_assert0(0);
|
||||
} else if (avctx->profile < AV_PROFILE_PRORES_PROXY
|
||||
|| avctx->profile > AV_PROFILE_PRORES_XQ) {
|
||||
av_log(
|
||||
|
Loading…
x
Reference in New Issue
Block a user