mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-27 02:41:54 +08:00 
			
		
		
		
	avcodec/jpeg2000dec: move "missing SIZ" check up
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		| @@ -1390,14 +1390,14 @@ static int jpeg2000_read_main_headers(Jpeg2000DecoderContext *s) | ||||
|             Jpeg2000Tile *tile; | ||||
|             Jpeg2000TilePart *tp; | ||||
|  | ||||
|             if (s->curtileno < 0) { | ||||
|                 av_log(s->avctx, AV_LOG_ERROR, "Missing SOT\n"); | ||||
|                 return AVERROR_INVALIDDATA; | ||||
|             } | ||||
|             if (!s->tile) { | ||||
|                 av_log(s->avctx, AV_LOG_ERROR, "Missing SIZ\n"); | ||||
|                 return AVERROR_INVALIDDATA; | ||||
|             } | ||||
|             if (s->curtileno < 0) { | ||||
|                 av_log(s->avctx, AV_LOG_ERROR, "Missing SOT\n"); | ||||
|                 return AVERROR_INVALIDDATA; | ||||
|             } | ||||
|  | ||||
|             tile = s->tile + s->curtileno; | ||||
|             tp = tile->tile_part + tile->tp_idx; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Michael Niedermayer
					Michael Niedermayer