mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
avcodec/sanm: Replace impossible bitstream check by assert
the space left and size have already been cross checked by the caller Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
michaelni
parent
7caa2a65d9
commit
d4e28917af
@@ -1832,8 +1832,7 @@ static int process_ftch(SANMVideoContext *ctx, int size)
|
||||
xoff = bytestream2_get_le16u(&ctx->gb);
|
||||
yoff = bytestream2_get_le16u(&ctx->gb);
|
||||
} else {
|
||||
if (bytestream2_get_bytes_left(&ctx->gb) < 12)
|
||||
return AVERROR_INVALIDDATA;
|
||||
av_assert0(bytestream2_get_bytes_left(&ctx->gb) >= 12);
|
||||
bytestream2_skip(&ctx->gb, 4);
|
||||
xoff = bytestream2_get_be32u(&ctx->gb);
|
||||
yoff = bytestream2_get_be32u(&ctx->gb);
|
||||
|
||||
Reference in New Issue
Block a user