aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/tests
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-23 17:28:57 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-08-27 02:23:43 +0200
commite405298ebded794a4ad84222c56b6c0245530afc (patch)
tree2bab73d33b584b3f70b0a678b08fcfc901abd283 /libavcodec/tests
parentd27c5bce333d6c9c74b855b1f2e747fd541cf37f (diff)
downloadffmpeg-e405298ebded794a4ad84222c56b6c0245530afc.tar.gz
avcodec/tests/avcodec: Mark frame-thrd encoder incompatible with delay
The API for frame-threaded encoders only works for one-in-one-out encoders. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/tests')
-rw-r--r--libavcodec/tests/avcodec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/tests/avcodec.c b/libavcodec/tests/avcodec.c
index 08b5fbede1..3288a85f64 100644
--- a/libavcodec/tests/avcodec.c
+++ b/libavcodec/tests/avcodec.c
@@ -155,6 +155,9 @@ int main(void){
if (codec->capabilities & AV_CODEC_CAP_FRAME_THREADS &&
codec->capabilities & AV_CODEC_CAP_ENCODER_FLUSH)
ERR("Frame-threaded encoder %s claims to support flushing\n");
+ if (codec->capabilities & AV_CODEC_CAP_FRAME_THREADS &&
+ codec->capabilities & AV_CODEC_CAP_DELAY)
+ ERR("Frame-threaded encoder %s claims to have delay\n");
} else {
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");