Maybe some additional combinatorics: The Firefox 126 package from OBS worked with both libavcodec60 and libavcodec61. The Mozilla binaries for Firefox 127 however show the same issue when libavcodec61 is present. The Flatpak builds of Firefox 127 also work but I guess that is to be expected since they do not use the system-provided libavcodec.