[FFmpeg-cvslog] avcodec/tests/avcodec: Mark frame-thrd encoder incompatible with delay
Andreas Rheinhardt
git at videolan.org
Sat Aug 27 05:29:03 EEST 2022
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue Aug 23 17:28:57 2022 +0200| [e405298ebded794a4ad84222c56b6c0245530afc] | committer: Andreas Rheinhardt
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 at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e405298ebded794a4ad84222c56b6c0245530afc
---
libavcodec/tests/avcodec.c | 3 +++
1 file changed, 3 insertions(+)
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");
More information about the ffmpeg-cvslog
mailing list