tmsf: CODEC_ID_* -> AV_CODEC_ID_*

This enables building with libav 10 and future proofs for the backwards compat disappearing in ffmpeg with the next libavcodec major version.