From 214998c55ff99586b57c1ccd34a7e6f15c4fcdb8 Mon Sep 17 00:00:00 2001 From: James Almer Date: Tue, 6 Oct 2020 11:20:24 -0300 Subject: avcodec/av1dec: avoid probing with av1dec av1dec should no longer attempt to output empty frames if another decoder was used for probing and it sucessfully set a pix_fmt ever since 05872c67a4, so we can re-add the AV_CODEC_CAP_AVOID_PROBING cap. Signed-off-by: James Almer --- libavcodec/av1dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/av1dec.c') diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c index 1b09dc183a..6d00754fcb 100644 --- a/libavcodec/av1dec.c +++ b/libavcodec/av1dec.c @@ -872,7 +872,7 @@ AVCodec ff_av1_decoder = { .init = av1_decode_init, .close = av1_decode_free, .decode = av1_decode_frame, - .capabilities = AV_CODEC_CAP_DR1, + .capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_AVOID_PROBING, .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP | FF_CODEC_CAP_SETS_PKT_DTS, -- cgit v1.2.3