mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Merge commit '1f0c6075604c271d5627480f1243d22795f9a315'
* commit '1f0c6075604c271d5627480f1243d22795f9a315': 4xm: drop pointless assert Conflicts: libavcodec/4xm.c The added condition is impossible to occur and thus is added to the assert. The assert is not removed from the default case, as the default case cannot occur. Thus either it should stay as is or the case as a whole be removed. For extra safety, to ensure this doesnt change the assert is changed to av_assert0() Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
18cb3d355f
@ -329,7 +329,7 @@ static inline void mcdc(uint16_t *dst, const uint16_t *src, int log2w,
|
||||
}
|
||||
break;
|
||||
default:
|
||||
av_assert2(0);
|
||||
av_assert0(0);
|
||||
}
|
||||
}
|
||||
|
||||
@ -345,7 +345,7 @@ static int decode_p_block(FourXContext *f, uint16_t *dst, uint16_t *src,
|
||||
uint16_t *end = start + stride * (f->avctx->height - h + 1) - (1 << log2w);
|
||||
int ret;
|
||||
|
||||
av_assert0(code >= 0 && code <= 6);
|
||||
av_assert0(code >= 0 && code <= 6 && log2w >= 0);
|
||||
|
||||
if (code == 0) {
|
||||
if (bytestream2_get_bytes_left(&f->g) < 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user