Need Some Help: MPV latest version build failures

Hey there, MPV recently had a new release v0.39.0, despite any major changes from my side the newer version keeps on getting build failures, with the limited time i have i zeroed down the problem to not be from my side.

But am still not able to deliver the latest release, anyone ready to lend a hand to sort this issue will be grateful.

Repository: https://codeberg.org/sameersharma2006/mpv-snap

Build logs of latest revision(amd64): https://launchpad.net/~sameersharma2006/mpv-snap/+snap/mpv/+build/2616015/+files/buildlog_snap_ubuntu_noble_amd64_mpv_BUILDING.txt.gz

Based on the error:

:: FAILED: mpv.desktop
:: /build/mpv/parts/mpv/src/TOOLS/gen-mpv-desktop.py /build/mpv/parts/mpv/src/etc/mpv.desktop /build/mpv/parts/mpv/build/mpv mpv.desktop
:: /build/mpv/parts/mpv/build/mpv: error while loading shared libraries: libavcodec.so.61: cannot open shared object file: No such file or directory

I think you should try adding libavcodec-dev to build-packages for that part.

Thanks for checking out ,but am not sure adding the mentioned dep would help as am using custom ffmpeg build which may lead to build conflict as ffmpeg from repository is older than the custom built ffmpeg .

Also if that dep is absent how does MPV build in the first place as it confirms the dep to exist in the initial stages.