Merge pull request #2030 from bmiklautz/fix/stable-1.1/ffmpeg

build: fix tsmf ffmpeg
build: fix tsmf ffmpeg build

Backported fixes to build against libavcodec >= 9.0