mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
jpeg2000dec: assert that curtileno is valid when used
Fixes CID1026755 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
234f76ae7d
commit
bbf43c70dd
@ -25,6 +25,7 @@
|
|||||||
* JPEG 2000 image decoder
|
* JPEG 2000 image decoder
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/avassert.h"
|
||||||
#include "libavutil/common.h"
|
#include "libavutil/common.h"
|
||||||
#include "libavutil/opt.h"
|
#include "libavutil/opt.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
@ -1230,6 +1231,7 @@ static int jpeg2000_read_main_headers(Jpeg2000DecoderContext *s)
|
|||||||
break;
|
break;
|
||||||
case JPEG2000_SOT:
|
case JPEG2000_SOT:
|
||||||
if (!(ret = get_sot(s, len))) {
|
if (!(ret = get_sot(s, len))) {
|
||||||
|
av_assert1(s->curtileno >= 0);
|
||||||
codsty = s->tile[s->curtileno].codsty;
|
codsty = s->tile[s->curtileno].codsty;
|
||||||
qntsty = s->tile[s->curtileno].qntsty;
|
qntsty = s->tile[s->curtileno].qntsty;
|
||||||
properties = s->tile[s->curtileno].properties;
|
properties = s->tile[s->curtileno].properties;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user