mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-21 22:36:59 +00:00
Merge commit '9b8c8a9395c849639aea0f6b5300e991e93c3a73'
* commit '9b8c8a9395c849639aea0f6b5300e991e93c3a73': svq1dec: Validate the stages value strictly Not merged, this is wrong, the condition is not possible Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
cba3a46e93
@ -187,7 +187,7 @@ static int svq1_decode_block_intra(GetBitContext *bitbuf, uint8_t *pixels,
|
||||
continue; /* skip vector */
|
||||
}
|
||||
|
||||
if (stages > 0 && level >= 4) {
|
||||
if ((stages > 0 && level >= 4)) {
|
||||
av_dlog(NULL,
|
||||
"Error (svq1_decode_block_intra): invalid vector: stages=%i level=%i\n",
|
||||
stages, level);
|
||||
@ -249,7 +249,7 @@ static int svq1_decode_block_non_intra(GetBitContext *bitbuf, uint8_t *pixels,
|
||||
if (stages == -1)
|
||||
continue; /* skip vector */
|
||||
|
||||
if ((stages > 0) && (level >= 4)) {
|
||||
if ((stages > 0 && level >= 4)) {
|
||||
av_dlog(NULL,
|
||||
"Error (svq1_decode_block_non_intra): invalid vector: stages=%i level=%i\n",
|
||||
stages, level);
|
||||
|
Loading…
Reference in New Issue
Block a user