Revert "avcodec/jpeglsdec: Check get_bits_left() before decoding a picture"

This check has been made redundant by f80224ed19 and fe7fbf3a22.

This reverts commit 4bc3008d04.
This commit is contained in:
Ramiro Polla
2025-12-29 20:03:10 +01:00
parent 2170f397ea
commit 272c273d30

View File

@@ -418,10 +418,6 @@ int ff_jpegls_decode_picture(MJpegDecodeContext *s, int near,
av_log(s->avctx, AV_LOG_DEBUG, "JPEG params: ILV=%i Pt=%i BPP=%i, scan = %i\n",
ilv, point_transform, s->bits, s->cur_scan);
}
if (get_bits_left(&s->gb) < s->height) {
ret = AVERROR_INVALIDDATA;
goto end;
}
if (ilv == 0) { /* separate planes */
if (s->cur_scan > s->nb_components) {
ret = AVERROR_INVALIDDATA;