ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@outlook.com> | 
Fri May 16 19:28:53 2025 +0200| [e12cbf6095871eabc097c1c790e916adf28452ad] | 
committer: Andreas Rheinhardt

avcodec/tests/avcodec: Check only frame-mt decoders set update_thread_ctx

Possible since 554b52b1b3f653ab3e59a0004da73b7aaf0fc4fd.

Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com>

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

 libavcodec/tests/avcodec.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/tests/avcodec.c b/libavcodec/tests/avcodec.c
index 83a5d05316..dde8226384 100644
--- a/libavcodec/tests/avcodec.c
+++ b/libavcodec/tests/avcodec.c
@@ -167,6 +167,9 @@ FF_ENABLE_DEPRECATION_WARNINGS
                 !(codec->capabilities & AV_CODEC_CAP_DELAY))
                 ERR("EOF_FLUSH encoder %s is not marked as having delay\n");
         } else {
+            if ((codec2->update_thread_context || 
codec2->update_thread_context_for_user) &&
+                !(codec->capabilities & AV_CODEC_CAP_FRAME_THREADS))
+                ERR("Non-frame-threaded decoder %s has update_thread_context 
set");
             if ((codec->type == AVMEDIA_TYPE_SUBTITLE) != (codec2->cb_type == 
FF_CODEC_CB_TYPE_DECODE_SUB))
                 ERR("Subtitle decoder %s does not implement decode_sub 
callback\n");
             if (codec->type == AVMEDIA_TYPE_SUBTITLE && codec2->bsfs)

_______________________________________________
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