mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-05 07:48:07 +02:00
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>
This commit is contained in:
parent
29e23ac71d
commit
b9fd9bce73
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user