aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-11 17:31:56 +0200
committerPaul B Mahol <onemda@gmail.com>2021-10-28 10:30:18 +0200
commitf8790ad002886a210d6cd33b96c3502b64f317e8 (patch)
treec0d74fb8616d79106fd7e322aad57ab5a608bb7f
parent4e3ffc9c54c26e49076ad4fced7b72ecc5a03945 (diff)
downloadffmpeg-f8790ad002886a210d6cd33b96c3502b64f317e8.tar.gz
avcodec/binkaudio: Remove AV_CODEC_CAP_DELAY
This decoder may output multiple AVFrames for every AVPacket passed to it, but after it has returned AVERROR(EAGAIN), it is completely drained and there is no reason to flush it at the end with a NULL packet. Furthermore, there is also no delay in the common sense of the word. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavcodec/binkaudio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/binkaudio.c b/libavcodec/binkaudio.c
index af8cb2809e..5915ba6ffb 100644
--- a/libavcodec/binkaudio.c
+++ b/libavcodec/binkaudio.c
@@ -346,7 +346,7 @@ const AVCodec ff_binkaudio_rdft_decoder = {
.init = decode_init,
.close = decode_end,
.receive_frame = binkaudio_receive_frame,
- .capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_DR1,
+ .capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP,
};
@@ -359,6 +359,6 @@ const AVCodec ff_binkaudio_dct_decoder = {
.init = decode_init,
.close = decode_end,
.receive_frame = binkaudio_receive_frame,
- .capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_DR1,
+ .capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP,
};