ffmpeg: check timebase validity before considering it to be used for stream copy