ffmpeg | branch: master | Fei Wang <fei.w.w...@intel.com> | Thu Dec 28 09:24:03 
2023 +0800| [57fbe929f368e65ff0bfaa3c1df5b1aa3b8b88db] | committer: Haihao Xiang

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.w...@intel.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=57fbe929f368e65ff0bfaa3c1df5b1aa3b8b88db
---

 libavcodec/av1dec.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c
index d4bfa3c69c..820fa79f48 100644
--- a/libavcodec/av1dec.c
+++ b/libavcodec/av1dec.c
@@ -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;
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to