diff mbox series

[FFmpeg-devel,09/11] avcodec/avcodec: Remove redundant assert

Message ID PR3PR03MB6665E8A4613061C3B934B8528FA49@PR3PR03MB6665.eurprd03.prod.outlook.com
State Accepted
Commit 29e23ac71dd146df054e4e2fcef1dcef6a56454f
Headers show
Series [FFmpeg-devel,01/11] avcodec/tests/utils: Rename to avcodec
Related show


Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 24, 2021, 4:37 p.m. UTC
It is now checked by FATE that no encoder capable of flushing
uses frame threads, so this now redundant runtime check can
be removed.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
 libavcodec/avcodec.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series


diff --git a/libavcodec/avcodec.c b/libavcodec/avcodec.c
index 97eb1ec431..5d85ed234b 100644
--- a/libavcodec/avcodec.c
+++ b/libavcodec/avcodec.c
@@ -390,9 +390,6 @@  void avcodec_flush_buffers(AVCodecContext *avctx)
                    "that doesn't support it\n");
-        // We haven't implemented flushing for frame-threaded encoders.
-        av_assert0(!(caps & AV_CODEC_CAP_FRAME_THREADS));
     avci->draining      = 0;