aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-24 03:48:50 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-26 13:29:29 +0200
commitb9fd9bce7328d8993c33f7892db3f1d58c8be18f (patch)
tree4de1df89609886e5a75142d95de3cf6620e749e3 /libavcodec/avcodec.c
parent29e23ac71dd146df054e4e2fcef1dcef6a56454f (diff)
downloadffmpeg-b9fd9bce7328d8993c33f7892db3f1d58c8be18f.tar.gz
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@outlook.com>
Diffstat (limited to 'libavcodec/avcodec.c')
-rw-r--r--libavcodec/avcodec.c2
1 files changed, 1 insertions, 1 deletions
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);
}