diff options
author | James Almer <jamrial@gmail.com> | 2020-10-06 11:20:24 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2020-10-06 11:28:12 -0300 |
commit | 214998c55ff99586b57c1ccd34a7e6f15c4fcdb8 (patch) | |
tree | d51500c26f64a613e6133478332a1a71f40703a4 /libavcodec/av1dec.c | |
parent | 1e97fbb3b67a9a105dc331c1989fa90f7dce76a4 (diff) |
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 <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/av1dec.c')
-rw-r--r-- | libavcodec/av1dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |