mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/av1dec: Return error for unsupported tile list OBU
Otherwise decoding maybe successful but output result is incorrect. Signed-off-by: Fei Wang <fei.w.wang@intel.com>
This commit is contained in:
parent
3f7e50f539
commit
57fbe929f3
@ -1202,6 +1202,12 @@ static int av1_receive_frame_internal(AVCodecContext *avctx, AVFrame *frame)
|
||||
|
||||
av_log(avctx, AV_LOG_DEBUG, "OBU idx:%d, type:%d, content available:%d.\n", i, unit->type, !!obu);
|
||||
|
||||
if (unit->type == AV1_OBU_TILE_LIST) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Large scale tile decoding is unsupported.\n");
|
||||
ret = AVERROR_PATCHWELCOME;
|
||||
goto end;
|
||||
}
|
||||
|
||||
if (!obu)
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user