[FFmpeg-cvslog] avcodec/avcodec: Remove redundant assert

Andreas Rheinhardt git at videolan.org
Sun Sep 26 14:59:37 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Sep 24 06:28:04 2021 +0200| [29e23ac71dd146df054e4e2fcef1dcef6a56454f] | committer: Andreas Rheinhardt

avcodec/avcodec: Remove redundant assert

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 at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=29e23ac71dd146df054e4e2fcef1dcef6a56454f
---

 libavcodec/avcodec.c | 3 ---
 1 file changed, 3 deletions(-)

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");
             return;
         }
-
-        // We haven't implemented flushing for frame-threaded encoders.
-        av_assert0(!(caps & AV_CODEC_CAP_FRAME_THREADS));
     }
 
     avci->draining      = 0;



More information about the ffmpeg-cvslog mailing list