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>

[ROCm/rocdecode commit: 253e604c7b]
Esse commit está contido em:
Rajy Rawther
2025-08-28 09:28:12 -07:00
commit de GitHub
commit 26389e857c
2 arquivos alterados com 9 adições e 1 exclusões
+4
Ver Arquivo
@@ -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");