fixes for current ffmpeg (libavcodec 54 et al)

Hey there!

I'm trying to build miro 5 on SprezzOS, a Debian Unstable derivative. Everything's good with the patch below, but otherwise we get errors at linktime from the deprecated functions.

I believe these new variants are in all modern ffmpeg, but I'd recommend you test.

Please apply. Thanks!