--- ./src/AV/AVWrapper.cpp.orig 2026-08-05 16:46:52.000000000 -0500 +++ ./src/AV/AVWrapper.cpp 2026-08-05 16:53:45.982694100 -0500 @@ -145,7 +145,9 @@ } bool AVCodecSupportsPixelFormat(const AVCodec* codec, AVPixelFormat pixel_fmt) { - const AVPixelFormat *p = codec->pix_fmts; + const enum AVPixelFormat *p = NULL; + avcodec_get_supported_config(NULL, codec, AV_CODEC_CONFIG_PIX_FORMAT, 0, + (const void**)&p, NULL); if(p == NULL) return true; // NULL means 'unknown' or 'any', assume it is supported while(*p != AV_PIX_FMT_NONE) { @@ -157,7 +159,10 @@ } bool AVCodecSupportsSampleFormat(const AVCodec* codec, AVSampleFormat sample_fmt) { - const AVSampleFormat *p = codec->sample_fmts; + const enum AVSampleFormat *p = NULL; + avcodec_get_supported_config(NULL, codec, AV_CODEC_CONFIG_SAMPLE_FORMAT, 0, + (const void**)&p, NULL); + if(p == NULL) return true; // NULL means 'unknown' or 'any', assume it is supported while(*p != AV_SAMPLE_FMT_NONE) {