fixed build issues with FFMpeg AVCodec version >=59 changes (#636)

* fixed build issues with FFMpeg AVCodec version >=59 changes

* fixed mistake of pushing stashed change

---------

Co-authored-by: Kiriti Gowda <kiritigowda@gmail.com>
This commit is contained in:
Rajy Rawther
2025-08-28 09:28:12 -07:00
committed by GitHub
parent eeecc3e8c8
commit 253e604c7b
2 changed files with 9 additions and 1 deletions
+4
View File
@@ -462,7 +462,11 @@ class VideoDemuxer {
|| !strcmp(av_fmt_input_ctx_->iformat->long_name, "Matroska / WebM"));
// Check if the input file allow seek functionality.
#if USE_AVCODEC_GREATER_THAN_58_134
is_seekable_ = true; //for latest version of FFMPeg, read_seek and read_seek2 is not exposed in AVFormatContext
#else
is_seekable_ = av_fmt_input_ctx_->iformat->read_seek || av_fmt_input_ctx_->iformat->read_seek2;
#endif
if (is_h264_) {
const AVBitStreamFilter *bsf = av_bsf_get_by_name("h264_mp4toannexb");