mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/jpeg2000dec: Fix copy and paste error
Found-by: jamrial Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
954e2b3d34
commit
5782e0ba8c
|
@ -301,8 +301,7 @@ static int get_siz(Jpeg2000DecoderContext *s)
|
||||||
if (s->tile_offset_x < 0 || s->tile_offset_y < 0 ||
|
if (s->tile_offset_x < 0 || s->tile_offset_y < 0 ||
|
||||||
s->image_offset_x < s->tile_offset_x ||
|
s->image_offset_x < s->tile_offset_x ||
|
||||||
s->image_offset_y < s->tile_offset_y) {
|
s->image_offset_y < s->tile_offset_y) {
|
||||||
av_log(s->avctx, AV_LOG_ERROR, "Tile offsets are invalid\n",
|
av_log(s->avctx, AV_LOG_ERROR, "Tile offsets are invalid\n");
|
||||||
s->ncomponents);
|
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue