mirror of https://git.ffmpeg.org/ffmpeg.git
libavcodec/jpeg2000dec.c: Enable image offsets
This patch enables support for image offsets. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
69522e0400
commit
2c21955f52
|
@ -288,10 +288,6 @@ static int get_siz(Jpeg2000DecoderContext *s)
|
|||
s->tile_offset_y = bytestream2_get_be32u(&s->g); // YT0Siz
|
||||
ncomponents = bytestream2_get_be16u(&s->g); // CSiz
|
||||
|
||||
if (s->image_offset_x || s->image_offset_y) {
|
||||
avpriv_request_sample(s->avctx, "Support for image offsets");
|
||||
return AVERROR_PATCHWELCOME;
|
||||
}
|
||||
if (av_image_check_size2(s->width, s->height, s->avctx->max_pixels, AV_PIX_FMT_NONE, 0, s->avctx)) {
|
||||
avpriv_request_sample(s->avctx, "Large Dimensions");
|
||||
return AVERROR_PATCHWELCOME;
|
||||
|
|
Loading…
Reference in New Issue