[FFmpeg-cvslog] avcodec/avcodec: Simplify check for flushing of bsf
Andreas Rheinhardt
git at videolan.org
Sun Sep 26 14:59:39 EEST 2021
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Sep 24 03:48:50 2021 +0200| [b9fd9bce7328d8993c33f7892db3f1d58c8be18f] | committer: Andreas Rheinhardt
avcodec/avcodec: Simplify check for flushing of bsf
Just check for the existence of the bsf. This is equivalent to
the old criterion of the AVCodecContext being a decoder.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b9fd9bce7328d8993c33f7892db3f1d58c8be18f
---
libavcodec/avcodec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/avcodec.c b/libavcodec/avcodec.c
index 5d85ed234b..ff3d73e237 100644
--- a/libavcodec/avcodec.c
+++ b/libavcodec/avcodec.c
@@ -418,7 +418,7 @@ void avcodec_flush_buffers(AVCodecContext *avctx)
avctx->pts_correction_last_pts =
avctx->pts_correction_last_dts = INT64_MIN;
- if (av_codec_is_decoder(avctx->codec))
+ if (avci->bsf)
av_bsf_flush(avci->bsf);
}
More information about the ffmpeg-cvslog
mailing list