You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avcodec/tests/avcodec: Check only frame-mt decoders set update_thread_ctx
Possible since 554b52b1b3
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user