You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
Merge commit '18a245a2aea31b92bc435f2962a71e060d83b5f7'
* commit '18a245a2aea31b92bc435f2962a71e060d83b5f7': jpeg2000dec: Add more checks when parsing headers The check cannot be true in FFmpeg, but does no harm. I will move it in a subsequent commit so it can detect missing SIZ Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1394,6 +1394,10 @@ static int jpeg2000_read_main_headers(Jpeg2000DecoderContext *s)
|
|||||||
av_log(s->avctx, AV_LOG_ERROR, "Missing SOT\n");
|
av_log(s->avctx, AV_LOG_ERROR, "Missing SOT\n");
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
if (!s->tile) {
|
||||||
|
av_log(s->avctx, AV_LOG_ERROR, "Missing SIZ\n");
|
||||||
|
return AVERROR_INVALIDDATA;
|
||||||
|
}
|
||||||
|
|
||||||
tile = s->tile + s->curtileno;
|
tile = s->tile + s->curtileno;
|
||||||
tp = tile->tile_part + tile->tp_idx;
|
tp = tile->tile_part + tile->tp_idx;
|
||||||
|
Reference in New Issue
Block a user