encode: deal even more with codec->time_base deprecation.

I assume this works too with Libav 10 and FFmpeg d3e51b41.